Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Licensing reorg #641

Merged
merged 8 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ export { CitizenshipDocument } from './models/citizenship-document';
export { ConfigurationResponse } from './models/configuration-response';
export { ContactAuthorizationTypeCode } from './models/contact-authorization-type-code';
export { Document } from './models/document';
export { DocumentBase } from './models/document-base';
export { EyeColourCode } from './models/eye-colour-code';
export { FingerprintProofDocument } from './models/fingerprint-proof-document';
export { GenderCode } from './models/gender-code';
export { GoogleRecaptcha } from './models/google-recaptcha';
export { HairColourCode } from './models/hair-colour-code';
export { HeightUnitCode } from './models/height-unit-code';
export { IdPhotoDocument } from './models/id-photo-document';
Expand All @@ -41,6 +43,7 @@ export { UserInfo } from './models/user-info';
export { UserInfoMsgTypeCode } from './models/user-info-msg-type-code';
export { WeightUnitCode } from './models/weight-unit-code';
export { WorkerCategoryTypeCode } from './models/worker-category-type-code';
export { WorkerLicenceAppAnonymousSubmitRequestJson } from './models/worker-licence-app-anonymous-submit-request-json';
export { WorkerLicenceAppCategoryData } from './models/worker-licence-app-category-data';
export { WorkerLicenceAppListResponse } from './models/worker-licence-app-list-response';
export { WorkerLicenceAppSubmitRequest } from './models/worker-licence-app-submit-request';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* tslint:disable */
/* eslint-disable */
import { LicenceDocumentTypeCode } from './licence-document-type-code';
export interface DocumentBase {
expiryDate?: null | string;
licenceDocumentTypeCode?: LicenceDocumentTypeCode;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* tslint:disable */
/* eslint-disable */
export interface GoogleRecaptcha {
recaptchaCode?: null | string;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/* tslint:disable */
/* eslint-disable */
import { Alias } from './alias';
import { ApplicationTypeCode } from './application-type-code';
import { DocumentBase } from './document-base';
import { EyeColourCode } from './eye-colour-code';
import { GenderCode } from './gender-code';
import { HairColourCode } from './hair-colour-code';
import { HeightUnitCode } from './height-unit-code';
import { LicenceTermCode } from './licence-term-code';
import { MailingAddress } from './mailing-address';
import { PoliceOfficerRoleCode } from './police-officer-role-code';
import { ResidentialAddress } from './residential-address';
import { WeightUnitCode } from './weight-unit-code';
import { WorkerCategoryTypeCode } from './worker-category-type-code';
import { WorkerLicenceTypeCode } from './worker-licence-type-code';
export interface WorkerLicenceAppAnonymousSubmitRequestJson {
aliases?: null | Array<Alias>;
applicationTypeCode?: ApplicationTypeCode;
bcDriversLicenceNumber?: null | string;
carryAndUseRestraints?: null | boolean;
categoryCodes?: null | Array<WorkerCategoryTypeCode>;
contactEmailAddress?: null | string;
contactPhoneNumber?: null | string;
dateOfBirth?: null | string;
documentInfos?: null | Array<DocumentBase>;
expiredLicenceId?: null | string;
expiredLicenceNumber?: null | string;
eyeColourCode?: EyeColourCode;
genderCode?: GenderCode;
givenName?: null | string;
hairColourCode?: HairColourCode;
hasBcDriversLicence?: null | boolean;
hasCriminalHistory?: null | boolean;
hasExpiredLicence?: null | boolean;
hasPreviousName?: null | boolean;
height?: null | number;
heightUnitCode?: HeightUnitCode;
isCanadianCitizen?: null | boolean;
isDogsPurposeDetectionDrugs?: null | boolean;
isDogsPurposeDetectionExplosives?: null | boolean;
isDogsPurposeProtection?: null | boolean;
isMailingTheSameAsResidential?: null | boolean;
isPoliceOrPeaceOfficer?: null | boolean;
isSoleProprietor?: null | boolean;
isTreatedForMHC?: null | boolean;
licenceTermCode?: LicenceTermCode;
mailingAddressData?: MailingAddress;
middleName1?: null | string;
middleName2?: null | string;
oneLegalName?: null | boolean;
otherOfficerRole?: null | string;
policeOfficerRoleCode?: PoliceOfficerRoleCode;
residentialAddressData?: ResidentialAddress;
surname?: null | string;
useBcServicesCardPhoto?: null | boolean;
useDogs?: null | boolean;
weight?: null | number;
weightUnitCode?: WeightUnitCode;
workerLicenceTypeCode?: WorkerLicenceTypeCode;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import { RequestBuilder } from '../request-builder';
import { Observable } from 'rxjs';
import { map, filter } from 'rxjs/operators';

import { GoogleRecaptcha } from '../models/google-recaptcha';
import { LicenceAppDocumentResponse } from '../models/licence-app-document-response';
import { LicenceDocumentTypeCode } from '../models/licence-document-type-code';
import { WorkerLicenceAppAnonymousSubmitRequestJson } from '../models/worker-licence-app-anonymous-submit-request-json';
import { WorkerLicenceAppListResponse } from '../models/worker-licence-app-list-response';
import { WorkerLicenceAppSubmitRequest } from '../models/worker-licence-app-submit-request';
import { WorkerLicenceAppUpsertRequest } from '../models/worker-licence-app-upsert-request';
Expand Down Expand Up @@ -345,7 +347,8 @@ export class WorkerLicensingService extends BaseService {
static readonly ApiWorkerLicenceApplicationsSubmitAnonymousPostPath = '/api/worker-licence-applications/submit/anonymous';

/**
* Submit Security Worker Licence Application Anonymously.
* Submit Security Worker Licence Application Anonymously
* deprecated as the request body is too big. the proxy won't let it through.
*
*
*
Expand Down Expand Up @@ -452,7 +455,8 @@ export class WorkerLicensingService extends BaseService {
}

/**
* Submit Security Worker Licence Application Anonymously.
* Submit Security Worker Licence Application Anonymously
* deprecated as the request body is too big. the proxy won't let it through.
*
*
*
Expand Down Expand Up @@ -546,4 +550,205 @@ export class WorkerLicensingService extends BaseService {
);
}

/**
* Path part for operation apiWorkerLicenceApplicationsAnonymousKeyCodePost
*/
static readonly ApiWorkerLicenceApplicationsAnonymousKeyCodePostPath = '/api/worker-licence-applications/anonymous/keyCode';

/**
* Upload licence application first step: frontend needs to make this first request to get a Guid code.
*
*
*
* This method provides access to the full `HttpResponse`, allowing access to response headers.
* To access only the response body, use `apiWorkerLicenceApplicationsAnonymousKeyCodePost()` instead.
*
* This method sends `application/*+json` and handles request body of type `application/*+json`.
*/
apiWorkerLicenceApplicationsAnonymousKeyCodePost$Response(params?: {
body?: GoogleRecaptcha
},
context?: HttpContext

): Observable<StrictHttpResponse<string>> {

const rb = new RequestBuilder(this.rootUrl, WorkerLicensingService.ApiWorkerLicenceApplicationsAnonymousKeyCodePostPath, 'post');
if (params) {
rb.body(params.body, 'application/*+json');
}

return this.http.request(rb.build({
responseType: 'json',
accept: 'application/json',
context: context
})).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<string>;
})
);
}

/**
* Upload licence application first step: frontend needs to make this first request to get a Guid code.
*
*
*
* This method provides access only to the response body.
* To access the full response (for headers, for example), `apiWorkerLicenceApplicationsAnonymousKeyCodePost$Response()` instead.
*
* This method sends `application/*+json` and handles request body of type `application/*+json`.
*/
apiWorkerLicenceApplicationsAnonymousKeyCodePost(params?: {
body?: GoogleRecaptcha
},
context?: HttpContext

): Observable<string> {

return this.apiWorkerLicenceApplicationsAnonymousKeyCodePost$Response(params,context).pipe(
map((r: StrictHttpResponse<string>) => r.body as string)
);
}

/**
* Path part for operation apiWorkerLicenceApplicationsAnonymousKeyCodeFilesPost
*/
static readonly ApiWorkerLicenceApplicationsAnonymousKeyCodeFilesPostPath = '/api/worker-licence-applications/anonymous/{keyCode}/files';

/**
* Upload licence application files: frontend use the keyCode to upload following files.
* Do not support parallel.
* Uploading file only save files in cache, the files are not connected to the appliation yet.
*
*
*
* This method provides access to the full `HttpResponse`, allowing access to response headers.
* To access only the response body, use `apiWorkerLicenceApplicationsAnonymousKeyCodeFilesPost()` instead.
*
* This method sends `multipart/form-data` and handles request body of type `multipart/form-data`.
*/
apiWorkerLicenceApplicationsAnonymousKeyCodeFilesPost$Response(params: {
keyCode: string;
body?: {
'Documents'?: Array<Blob>;
'LicenceDocumentTypeCode'?: LicenceDocumentTypeCode;
}
},
context?: HttpContext

): Observable<StrictHttpResponse<string>> {

const rb = new RequestBuilder(this.rootUrl, WorkerLicensingService.ApiWorkerLicenceApplicationsAnonymousKeyCodeFilesPostPath, 'post');
if (params) {
rb.path('keyCode', params.keyCode, {"style":"simple"});
rb.body(params.body, 'multipart/form-data');
}

return this.http.request(rb.build({
responseType: 'json',
accept: 'application/json',
context: context
})).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<string>;
})
);
}

/**
* Upload licence application files: frontend use the keyCode to upload following files.
* Do not support parallel.
* Uploading file only save files in cache, the files are not connected to the appliation yet.
*
*
*
* This method provides access only to the response body.
* To access the full response (for headers, for example), `apiWorkerLicenceApplicationsAnonymousKeyCodeFilesPost$Response()` instead.
*
* This method sends `multipart/form-data` and handles request body of type `multipart/form-data`.
*/
apiWorkerLicenceApplicationsAnonymousKeyCodeFilesPost(params: {
keyCode: string;
body?: {
'Documents'?: Array<Blob>;
'LicenceDocumentTypeCode'?: LicenceDocumentTypeCode;
}
},
context?: HttpContext

): Observable<string> {

return this.apiWorkerLicenceApplicationsAnonymousKeyCodeFilesPost$Response(params,context).pipe(
map((r: StrictHttpResponse<string>) => r.body as string)
);
}

/**
* Path part for operation apiWorkerLicenceApplicationsAnonymousKeyCodeSubmitPost
*/
static readonly ApiWorkerLicenceApplicationsAnonymousKeyCodeSubmitPostPath = '/api/worker-licence-applications/anonymous/{keyCode}/submit';

/**
* Submit Security Worker Licence Application Json part Anonymously
* After fe done with the uploading files, then fe do post with json payload.
*
*
*
* This method provides access to the full `HttpResponse`, allowing access to response headers.
* To access only the response body, use `apiWorkerLicenceApplicationsAnonymousKeyCodeSubmitPost()` instead.
*
* This method sends `application/*+json` and handles request body of type `application/*+json`.
*/
apiWorkerLicenceApplicationsAnonymousKeyCodeSubmitPost$Response(params: {
keyCode: string;
body?: WorkerLicenceAppAnonymousSubmitRequestJson
},
context?: HttpContext

): Observable<StrictHttpResponse<WorkerLicenceAppUpsertResponse>> {

const rb = new RequestBuilder(this.rootUrl, WorkerLicensingService.ApiWorkerLicenceApplicationsAnonymousKeyCodeSubmitPostPath, 'post');
if (params) {
rb.path('keyCode', params.keyCode, {"style":"simple"});
rb.body(params.body, 'application/*+json');
}

return this.http.request(rb.build({
responseType: 'json',
accept: 'application/json',
context: context
})).pipe(
filter((r: any) => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<WorkerLicenceAppUpsertResponse>;
})
);
}

/**
* Submit Security Worker Licence Application Json part Anonymously
* After fe done with the uploading files, then fe do post with json payload.
*
*
*
* This method provides access only to the response body.
* To access the full response (for headers, for example), `apiWorkerLicenceApplicationsAnonymousKeyCodeSubmitPost$Response()` instead.
*
* This method sends `application/*+json` and handles request body of type `application/*+json`.
*/
apiWorkerLicenceApplicationsAnonymousKeyCodeSubmitPost(params: {
keyCode: string;
body?: WorkerLicenceAppAnonymousSubmitRequestJson
},
context?: HttpContext

): Observable<WorkerLicenceAppUpsertResponse> {

return this.apiWorkerLicenceApplicationsAnonymousKeyCodeSubmitPost$Response(params,context).pipe(
map((r: StrictHttpResponse<WorkerLicenceAppUpsertResponse>) => r.body as WorkerLicenceAppUpsertResponse)
);
}

}
Loading
Loading