@bite-ninja/zenu-sdk 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +2 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/gen/zenu/users/v1/ninja_onboarding_service.d.ts +191 -0
- package/dist/gen/zenu/users/v1/ninja_onboarding_service.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +997 -1
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type UsersServiceClient, type AgreementsServiceClient, type UserAgreementsServiceClient } from ".";
|
|
1
|
+
import { type UsersServiceClient, type AgreementsServiceClient, type UserAgreementsServiceClient, type NinjaOnboardingServiceClient } from ".";
|
|
2
2
|
/**
|
|
3
3
|
* Configuration for the Zenu SDK client.
|
|
4
4
|
*/
|
|
@@ -23,6 +23,7 @@ interface ZenuClient {
|
|
|
23
23
|
users: UsersServiceClient;
|
|
24
24
|
agreements: AgreementsServiceClient;
|
|
25
25
|
userAgreements: UserAgreementsServiceClient;
|
|
26
|
+
ninjaOnboarding: NinjaOnboardingServiceClient;
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
29
|
* Creates a new Zenu SDK client.
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,kBAAkB,EAEvB,KAAK,uBAAuB,EAE5B,KAAK,2BAA2B,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,kBAAkB,EAEvB,KAAK,uBAAuB,EAE5B,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAElC,MAAM,GAAG,CAAC;AAEX;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,QAAQ,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;CACjC;AAED;;GAEG;AACH,UAAU,UAAU;IAClB;;OAEG;IACH,KAAK,EAAE,kBAAkB,CAAC;IAC1B,UAAU,EAAE,uBAAuB,CAAC;IACpC,cAAc,EAAE,2BAA2B,CAAC;IAC5C,eAAe,EAAE,4BAA4B,CAAC;CAC/C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,QAAQ,GACT,EAAE,iBAAiB,GAAG,UAAU,CA2BhC"}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
3
|
+
/** The onboarding status of a ninja application. */
|
|
4
|
+
export declare enum OnboardingStatus {
|
|
5
|
+
ONBOARDING_STATUS_UNSPECIFIED = 0,
|
|
6
|
+
/** ONBOARDING_STATUS_APPLICATION - The applicant is still filling out the form. */
|
|
7
|
+
ONBOARDING_STATUS_APPLICATION = 1,
|
|
8
|
+
/** ONBOARDING_STATUS_REVIEW - The application has been submitted and is awaiting review. */
|
|
9
|
+
ONBOARDING_STATUS_REVIEW = 2,
|
|
10
|
+
/** ONBOARDING_STATUS_ACCEPTED - The application has been accepted by an administrator. */
|
|
11
|
+
ONBOARDING_STATUS_ACCEPTED = 3,
|
|
12
|
+
/** ONBOARDING_STATUS_DECLINED - The application has been declined by an administrator. */
|
|
13
|
+
ONBOARDING_STATUS_DECLINED = 4,
|
|
14
|
+
/** ONBOARDING_STATUS_COMPLETE - The onboarding process is complete. */
|
|
15
|
+
ONBOARDING_STATUS_COMPLETE = 5,
|
|
16
|
+
UNRECOGNIZED = -1
|
|
17
|
+
}
|
|
18
|
+
export declare function onboardingStatusFromJSON(object: any): OnboardingStatus;
|
|
19
|
+
export declare function onboardingStatusToJSON(object: OnboardingStatus): string;
|
|
20
|
+
/** A question and answer pair from an onboarding assessment. */
|
|
21
|
+
export interface Assessment {
|
|
22
|
+
question: string;
|
|
23
|
+
answer: string;
|
|
24
|
+
}
|
|
25
|
+
/** Represents a ninja onboarding application. */
|
|
26
|
+
export interface NinjaOnboardingApplication {
|
|
27
|
+
id: string;
|
|
28
|
+
userId: string;
|
|
29
|
+
isAdult: boolean;
|
|
30
|
+
isUsWorkAuthorized: boolean;
|
|
31
|
+
languages: string[];
|
|
32
|
+
uploadSpeedMbps: number;
|
|
33
|
+
downloadSpeedMbps: number;
|
|
34
|
+
hasRecentComputer: boolean;
|
|
35
|
+
hasQuietSpace: boolean;
|
|
36
|
+
hasRetailExperience: boolean;
|
|
37
|
+
availability: string[];
|
|
38
|
+
assessments: Assessment[];
|
|
39
|
+
status: OnboardingStatus;
|
|
40
|
+
}
|
|
41
|
+
/** Retrieves the current user's ninja onboarding application. */
|
|
42
|
+
export interface GetNinjaOnboardingApplicationRequest {
|
|
43
|
+
/** Resolves as authenticated user if not provided. */
|
|
44
|
+
userId?: string | undefined;
|
|
45
|
+
}
|
|
46
|
+
export interface GetNinjaOnboardingApplicationResponse {
|
|
47
|
+
application: NinjaOnboardingApplication | undefined;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Updates the current user's ninja onboarding application.
|
|
51
|
+
*
|
|
52
|
+
* Only provided fields are updated (patch semantics).
|
|
53
|
+
*/
|
|
54
|
+
export interface UpdateNinjaOnboardingApplicationRequest {
|
|
55
|
+
isAdult?: boolean | undefined;
|
|
56
|
+
isUsWorkAuthorized?: boolean | undefined;
|
|
57
|
+
languages: string[];
|
|
58
|
+
uploadSpeedMbps?: number | undefined;
|
|
59
|
+
downloadSpeedMbps?: number | undefined;
|
|
60
|
+
hasRecentComputer?: boolean | undefined;
|
|
61
|
+
hasQuietSpace?: boolean | undefined;
|
|
62
|
+
hasRetailExperience?: boolean | undefined;
|
|
63
|
+
availability: string[];
|
|
64
|
+
assessments: Assessment[];
|
|
65
|
+
}
|
|
66
|
+
export interface UpdateNinjaOnboardingApplicationResponse {
|
|
67
|
+
application: NinjaOnboardingApplication | undefined;
|
|
68
|
+
}
|
|
69
|
+
/** Submits the current user's ninja onboarding application for review. */
|
|
70
|
+
export interface SubmitNinjaOnboardingApplicationRequest {
|
|
71
|
+
}
|
|
72
|
+
export interface SubmitNinjaOnboardingApplicationResponse {
|
|
73
|
+
application: NinjaOnboardingApplication | undefined;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Sets the onboarding status for a user's application.
|
|
77
|
+
*
|
|
78
|
+
* For administrators to move the application through the onboarding stages.
|
|
79
|
+
*/
|
|
80
|
+
export interface SetNinjaOnboardingStatusRequest {
|
|
81
|
+
userId: string;
|
|
82
|
+
status: OnboardingStatus;
|
|
83
|
+
}
|
|
84
|
+
export interface SetNinjaOnboardingStatusResponse {
|
|
85
|
+
application: NinjaOnboardingApplication | undefined;
|
|
86
|
+
}
|
|
87
|
+
export declare const Assessment: MessageFns<Assessment>;
|
|
88
|
+
export declare const NinjaOnboardingApplication: MessageFns<NinjaOnboardingApplication>;
|
|
89
|
+
export declare const GetNinjaOnboardingApplicationRequest: MessageFns<GetNinjaOnboardingApplicationRequest>;
|
|
90
|
+
export declare const GetNinjaOnboardingApplicationResponse: MessageFns<GetNinjaOnboardingApplicationResponse>;
|
|
91
|
+
export declare const UpdateNinjaOnboardingApplicationRequest: MessageFns<UpdateNinjaOnboardingApplicationRequest>;
|
|
92
|
+
export declare const UpdateNinjaOnboardingApplicationResponse: MessageFns<UpdateNinjaOnboardingApplicationResponse>;
|
|
93
|
+
export declare const SubmitNinjaOnboardingApplicationRequest: MessageFns<SubmitNinjaOnboardingApplicationRequest>;
|
|
94
|
+
export declare const SubmitNinjaOnboardingApplicationResponse: MessageFns<SubmitNinjaOnboardingApplicationResponse>;
|
|
95
|
+
export declare const SetNinjaOnboardingStatusRequest: MessageFns<SetNinjaOnboardingStatusRequest>;
|
|
96
|
+
export declare const SetNinjaOnboardingStatusResponse: MessageFns<SetNinjaOnboardingStatusResponse>;
|
|
97
|
+
export type NinjaOnboardingServiceDefinition = typeof NinjaOnboardingServiceDefinition;
|
|
98
|
+
export declare const NinjaOnboardingServiceDefinition: {
|
|
99
|
+
readonly name: "NinjaOnboardingService";
|
|
100
|
+
readonly fullName: "zenu.users.v1.NinjaOnboardingService";
|
|
101
|
+
readonly methods: {
|
|
102
|
+
/** Retrieves the application form and current status */
|
|
103
|
+
readonly getNinjaOnboardingApplication: {
|
|
104
|
+
readonly name: "GetNinjaOnboardingApplication";
|
|
105
|
+
readonly requestType: MessageFns<GetNinjaOnboardingApplicationRequest>;
|
|
106
|
+
readonly requestStream: false;
|
|
107
|
+
readonly responseType: MessageFns<GetNinjaOnboardingApplicationResponse>;
|
|
108
|
+
readonly responseStream: false;
|
|
109
|
+
readonly options: {};
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Used to store the current state of the ninja application form for applicants
|
|
113
|
+
* to fill over time.
|
|
114
|
+
* The form should be submitted once the application is ready for review.
|
|
115
|
+
*/
|
|
116
|
+
readonly updateNinjaOnboardingApplication: {
|
|
117
|
+
readonly name: "UpdateNinjaOnboardingApplication";
|
|
118
|
+
readonly requestType: MessageFns<UpdateNinjaOnboardingApplicationRequest>;
|
|
119
|
+
readonly requestStream: false;
|
|
120
|
+
readonly responseType: MessageFns<UpdateNinjaOnboardingApplicationResponse>;
|
|
121
|
+
readonly responseStream: false;
|
|
122
|
+
readonly options: {};
|
|
123
|
+
};
|
|
124
|
+
/** Submits the ninja application for review. */
|
|
125
|
+
readonly submitNinjaOnboardingApplication: {
|
|
126
|
+
readonly name: "SubmitNinjaOnboardingApplication";
|
|
127
|
+
readonly requestType: MessageFns<SubmitNinjaOnboardingApplicationRequest>;
|
|
128
|
+
readonly requestStream: false;
|
|
129
|
+
readonly responseType: MessageFns<SubmitNinjaOnboardingApplicationResponse>;
|
|
130
|
+
readonly responseStream: false;
|
|
131
|
+
readonly options: {};
|
|
132
|
+
};
|
|
133
|
+
/** Used by administrators to move the ninja application through the different stages of the onboarding process. */
|
|
134
|
+
readonly setNinjaOnboardingStatus: {
|
|
135
|
+
readonly name: "SetNinjaOnboardingStatus";
|
|
136
|
+
readonly requestType: MessageFns<SetNinjaOnboardingStatusRequest>;
|
|
137
|
+
readonly requestStream: false;
|
|
138
|
+
readonly responseType: MessageFns<SetNinjaOnboardingStatusResponse>;
|
|
139
|
+
readonly responseStream: false;
|
|
140
|
+
readonly options: {};
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
export interface NinjaOnboardingServiceImplementation<CallContextExt = {}> {
|
|
145
|
+
/** Retrieves the application form and current status */
|
|
146
|
+
getNinjaOnboardingApplication(request: GetNinjaOnboardingApplicationRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetNinjaOnboardingApplicationResponse>>;
|
|
147
|
+
/**
|
|
148
|
+
* Used to store the current state of the ninja application form for applicants
|
|
149
|
+
* to fill over time.
|
|
150
|
+
* The form should be submitted once the application is ready for review.
|
|
151
|
+
*/
|
|
152
|
+
updateNinjaOnboardingApplication(request: UpdateNinjaOnboardingApplicationRequest, context: CallContext & CallContextExt): Promise<DeepPartial<UpdateNinjaOnboardingApplicationResponse>>;
|
|
153
|
+
/** Submits the ninja application for review. */
|
|
154
|
+
submitNinjaOnboardingApplication(request: SubmitNinjaOnboardingApplicationRequest, context: CallContext & CallContextExt): Promise<DeepPartial<SubmitNinjaOnboardingApplicationResponse>>;
|
|
155
|
+
/** Used by administrators to move the ninja application through the different stages of the onboarding process. */
|
|
156
|
+
setNinjaOnboardingStatus(request: SetNinjaOnboardingStatusRequest, context: CallContext & CallContextExt): Promise<DeepPartial<SetNinjaOnboardingStatusResponse>>;
|
|
157
|
+
}
|
|
158
|
+
export interface NinjaOnboardingServiceClient<CallOptionsExt = {}> {
|
|
159
|
+
/** Retrieves the application form and current status */
|
|
160
|
+
getNinjaOnboardingApplication(request: DeepPartial<GetNinjaOnboardingApplicationRequest>, options?: CallOptions & CallOptionsExt): Promise<GetNinjaOnboardingApplicationResponse>;
|
|
161
|
+
/**
|
|
162
|
+
* Used to store the current state of the ninja application form for applicants
|
|
163
|
+
* to fill over time.
|
|
164
|
+
* The form should be submitted once the application is ready for review.
|
|
165
|
+
*/
|
|
166
|
+
updateNinjaOnboardingApplication(request: DeepPartial<UpdateNinjaOnboardingApplicationRequest>, options?: CallOptions & CallOptionsExt): Promise<UpdateNinjaOnboardingApplicationResponse>;
|
|
167
|
+
/** Submits the ninja application for review. */
|
|
168
|
+
submitNinjaOnboardingApplication(request: DeepPartial<SubmitNinjaOnboardingApplicationRequest>, options?: CallOptions & CallOptionsExt): Promise<SubmitNinjaOnboardingApplicationResponse>;
|
|
169
|
+
/** Used by administrators to move the ninja application through the different stages of the onboarding process. */
|
|
170
|
+
setNinjaOnboardingStatus(request: DeepPartial<SetNinjaOnboardingStatusRequest>, options?: CallOptions & CallOptionsExt): Promise<SetNinjaOnboardingStatusResponse>;
|
|
171
|
+
}
|
|
172
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
173
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
174
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
175
|
+
} : Partial<T>;
|
|
176
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
177
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
178
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
179
|
+
} & {
|
|
180
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
181
|
+
};
|
|
182
|
+
interface MessageFns<T> {
|
|
183
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
184
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
185
|
+
fromJSON(object: any): T;
|
|
186
|
+
toJSON(message: T): unknown;
|
|
187
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
188
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
189
|
+
}
|
|
190
|
+
export {};
|
|
191
|
+
//# sourceMappingURL=ninja_onboarding_service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ninja_onboarding_service.d.ts","sourceRoot":"","sources":["../../../../../src/gen/zenu/users/v1/ninja_onboarding_service.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEjE,oDAAoD;AACpD,oBAAY,gBAAgB;IAC1B,6BAA6B,IAAI;IACjC,mFAAmF;IACnF,6BAA6B,IAAI;IACjC,4FAA4F;IAC5F,wBAAwB,IAAI;IAC5B,0FAA0F;IAC1F,0BAA0B,IAAI;IAC9B,0FAA0F;IAC1F,0BAA0B,IAAI;IAC9B,uEAAuE;IACvE,0BAA0B,IAAI;IAC9B,YAAY,KAAK;CAClB;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,GAAG,GAAG,gBAAgB,CAyBtE;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAkBvE;AAED,gEAAgE;AAChE,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,iDAAiD;AACjD,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,kBAAkB,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AC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxD,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export * from "./client.js";
|
|
|
2
2
|
export * from "./gen/zenu/users/v1/agreements_service.js";
|
|
3
3
|
export * from "./gen/zenu/users/v1/user_agreements_service.js";
|
|
4
4
|
export * from "./gen/zenu/users/v1/users_service.js";
|
|
5
|
+
export * from "./gen/zenu/users/v1/ninja_onboarding_service.js";
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sCAAsC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2371,7 +2371,8 @@ function createZenuClient({
|
|
|
2371
2371
|
return {
|
|
2372
2372
|
users: clientFactory.create(UsersServiceDefinition, channel),
|
|
2373
2373
|
agreements: clientFactory.create(AgreementsServiceDefinition, channel),
|
|
2374
|
-
userAgreements: clientFactory.create(UserAgreementsServiceDefinition, channel)
|
|
2374
|
+
userAgreements: clientFactory.create(UserAgreementsServiceDefinition, channel),
|
|
2375
|
+
ninjaOnboarding: clientFactory.create(NinjaOnboardingServiceDefinition, channel)
|
|
2375
2376
|
};
|
|
2376
2377
|
}
|
|
2377
2378
|
// node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js
|
|
@@ -5959,11 +5960,994 @@ function fromJsonTimestamp3(o) {
|
|
|
5959
5960
|
function isSet4(value) {
|
|
5960
5961
|
return value !== null && value !== undefined;
|
|
5961
5962
|
}
|
|
5963
|
+
// src/gen/zenu/users/v1/ninja_onboarding_service.ts
|
|
5964
|
+
var OnboardingStatus;
|
|
5965
|
+
((OnboardingStatus2) => {
|
|
5966
|
+
OnboardingStatus2[OnboardingStatus2["ONBOARDING_STATUS_UNSPECIFIED"] = 0] = "ONBOARDING_STATUS_UNSPECIFIED";
|
|
5967
|
+
OnboardingStatus2[OnboardingStatus2["ONBOARDING_STATUS_APPLICATION"] = 1] = "ONBOARDING_STATUS_APPLICATION";
|
|
5968
|
+
OnboardingStatus2[OnboardingStatus2["ONBOARDING_STATUS_REVIEW"] = 2] = "ONBOARDING_STATUS_REVIEW";
|
|
5969
|
+
OnboardingStatus2[OnboardingStatus2["ONBOARDING_STATUS_ACCEPTED"] = 3] = "ONBOARDING_STATUS_ACCEPTED";
|
|
5970
|
+
OnboardingStatus2[OnboardingStatus2["ONBOARDING_STATUS_DECLINED"] = 4] = "ONBOARDING_STATUS_DECLINED";
|
|
5971
|
+
OnboardingStatus2[OnboardingStatus2["ONBOARDING_STATUS_COMPLETE"] = 5] = "ONBOARDING_STATUS_COMPLETE";
|
|
5972
|
+
OnboardingStatus2[OnboardingStatus2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
5973
|
+
})(OnboardingStatus ||= {});
|
|
5974
|
+
function onboardingStatusFromJSON(object) {
|
|
5975
|
+
switch (object) {
|
|
5976
|
+
case 0:
|
|
5977
|
+
case "ONBOARDING_STATUS_UNSPECIFIED":
|
|
5978
|
+
return 0 /* ONBOARDING_STATUS_UNSPECIFIED */;
|
|
5979
|
+
case 1:
|
|
5980
|
+
case "ONBOARDING_STATUS_APPLICATION":
|
|
5981
|
+
return 1 /* ONBOARDING_STATUS_APPLICATION */;
|
|
5982
|
+
case 2:
|
|
5983
|
+
case "ONBOARDING_STATUS_REVIEW":
|
|
5984
|
+
return 2 /* ONBOARDING_STATUS_REVIEW */;
|
|
5985
|
+
case 3:
|
|
5986
|
+
case "ONBOARDING_STATUS_ACCEPTED":
|
|
5987
|
+
return 3 /* ONBOARDING_STATUS_ACCEPTED */;
|
|
5988
|
+
case 4:
|
|
5989
|
+
case "ONBOARDING_STATUS_DECLINED":
|
|
5990
|
+
return 4 /* ONBOARDING_STATUS_DECLINED */;
|
|
5991
|
+
case 5:
|
|
5992
|
+
case "ONBOARDING_STATUS_COMPLETE":
|
|
5993
|
+
return 5 /* ONBOARDING_STATUS_COMPLETE */;
|
|
5994
|
+
case -1:
|
|
5995
|
+
case "UNRECOGNIZED":
|
|
5996
|
+
default:
|
|
5997
|
+
return -1 /* UNRECOGNIZED */;
|
|
5998
|
+
}
|
|
5999
|
+
}
|
|
6000
|
+
function onboardingStatusToJSON(object) {
|
|
6001
|
+
switch (object) {
|
|
6002
|
+
case 0 /* ONBOARDING_STATUS_UNSPECIFIED */:
|
|
6003
|
+
return "ONBOARDING_STATUS_UNSPECIFIED";
|
|
6004
|
+
case 1 /* ONBOARDING_STATUS_APPLICATION */:
|
|
6005
|
+
return "ONBOARDING_STATUS_APPLICATION";
|
|
6006
|
+
case 2 /* ONBOARDING_STATUS_REVIEW */:
|
|
6007
|
+
return "ONBOARDING_STATUS_REVIEW";
|
|
6008
|
+
case 3 /* ONBOARDING_STATUS_ACCEPTED */:
|
|
6009
|
+
return "ONBOARDING_STATUS_ACCEPTED";
|
|
6010
|
+
case 4 /* ONBOARDING_STATUS_DECLINED */:
|
|
6011
|
+
return "ONBOARDING_STATUS_DECLINED";
|
|
6012
|
+
case 5 /* ONBOARDING_STATUS_COMPLETE */:
|
|
6013
|
+
return "ONBOARDING_STATUS_COMPLETE";
|
|
6014
|
+
case -1 /* UNRECOGNIZED */:
|
|
6015
|
+
default:
|
|
6016
|
+
return "UNRECOGNIZED";
|
|
6017
|
+
}
|
|
6018
|
+
}
|
|
6019
|
+
function createBaseAssessment() {
|
|
6020
|
+
return { question: "", answer: "" };
|
|
6021
|
+
}
|
|
6022
|
+
var Assessment = {
|
|
6023
|
+
encode(message, writer = new BinaryWriter) {
|
|
6024
|
+
if (message.question !== "") {
|
|
6025
|
+
writer.uint32(10).string(message.question);
|
|
6026
|
+
}
|
|
6027
|
+
if (message.answer !== "") {
|
|
6028
|
+
writer.uint32(18).string(message.answer);
|
|
6029
|
+
}
|
|
6030
|
+
return writer;
|
|
6031
|
+
},
|
|
6032
|
+
decode(input, length) {
|
|
6033
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6034
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6035
|
+
const message = createBaseAssessment();
|
|
6036
|
+
while (reader.pos < end) {
|
|
6037
|
+
const tag = reader.uint32();
|
|
6038
|
+
switch (tag >>> 3) {
|
|
6039
|
+
case 1: {
|
|
6040
|
+
if (tag !== 10) {
|
|
6041
|
+
break;
|
|
6042
|
+
}
|
|
6043
|
+
message.question = reader.string();
|
|
6044
|
+
continue;
|
|
6045
|
+
}
|
|
6046
|
+
case 2: {
|
|
6047
|
+
if (tag !== 18) {
|
|
6048
|
+
break;
|
|
6049
|
+
}
|
|
6050
|
+
message.answer = reader.string();
|
|
6051
|
+
continue;
|
|
6052
|
+
}
|
|
6053
|
+
}
|
|
6054
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6055
|
+
break;
|
|
6056
|
+
}
|
|
6057
|
+
reader.skip(tag & 7);
|
|
6058
|
+
}
|
|
6059
|
+
return message;
|
|
6060
|
+
},
|
|
6061
|
+
fromJSON(object) {
|
|
6062
|
+
return {
|
|
6063
|
+
question: isSet5(object.question) ? globalThis.String(object.question) : "",
|
|
6064
|
+
answer: isSet5(object.answer) ? globalThis.String(object.answer) : ""
|
|
6065
|
+
};
|
|
6066
|
+
},
|
|
6067
|
+
toJSON(message) {
|
|
6068
|
+
const obj = {};
|
|
6069
|
+
if (message.question !== "") {
|
|
6070
|
+
obj.question = message.question;
|
|
6071
|
+
}
|
|
6072
|
+
if (message.answer !== "") {
|
|
6073
|
+
obj.answer = message.answer;
|
|
6074
|
+
}
|
|
6075
|
+
return obj;
|
|
6076
|
+
},
|
|
6077
|
+
create(base) {
|
|
6078
|
+
return Assessment.fromPartial(base ?? {});
|
|
6079
|
+
},
|
|
6080
|
+
fromPartial(object) {
|
|
6081
|
+
const message = createBaseAssessment();
|
|
6082
|
+
message.question = object.question ?? "";
|
|
6083
|
+
message.answer = object.answer ?? "";
|
|
6084
|
+
return message;
|
|
6085
|
+
}
|
|
6086
|
+
};
|
|
6087
|
+
function createBaseNinjaOnboardingApplication() {
|
|
6088
|
+
return {
|
|
6089
|
+
id: "",
|
|
6090
|
+
userId: "",
|
|
6091
|
+
isAdult: false,
|
|
6092
|
+
isUsWorkAuthorized: false,
|
|
6093
|
+
languages: [],
|
|
6094
|
+
uploadSpeedMbps: 0,
|
|
6095
|
+
downloadSpeedMbps: 0,
|
|
6096
|
+
hasRecentComputer: false,
|
|
6097
|
+
hasQuietSpace: false,
|
|
6098
|
+
hasRetailExperience: false,
|
|
6099
|
+
availability: [],
|
|
6100
|
+
assessments: [],
|
|
6101
|
+
status: 0
|
|
6102
|
+
};
|
|
6103
|
+
}
|
|
6104
|
+
var NinjaOnboardingApplication = {
|
|
6105
|
+
encode(message, writer = new BinaryWriter) {
|
|
6106
|
+
if (message.id !== "") {
|
|
6107
|
+
writer.uint32(10).string(message.id);
|
|
6108
|
+
}
|
|
6109
|
+
if (message.userId !== "") {
|
|
6110
|
+
writer.uint32(18).string(message.userId);
|
|
6111
|
+
}
|
|
6112
|
+
if (message.isAdult !== false) {
|
|
6113
|
+
writer.uint32(24).bool(message.isAdult);
|
|
6114
|
+
}
|
|
6115
|
+
if (message.isUsWorkAuthorized !== false) {
|
|
6116
|
+
writer.uint32(32).bool(message.isUsWorkAuthorized);
|
|
6117
|
+
}
|
|
6118
|
+
for (const v of message.languages) {
|
|
6119
|
+
writer.uint32(42).string(v);
|
|
6120
|
+
}
|
|
6121
|
+
if (message.uploadSpeedMbps !== 0) {
|
|
6122
|
+
writer.uint32(48).int32(message.uploadSpeedMbps);
|
|
6123
|
+
}
|
|
6124
|
+
if (message.downloadSpeedMbps !== 0) {
|
|
6125
|
+
writer.uint32(56).int32(message.downloadSpeedMbps);
|
|
6126
|
+
}
|
|
6127
|
+
if (message.hasRecentComputer !== false) {
|
|
6128
|
+
writer.uint32(64).bool(message.hasRecentComputer);
|
|
6129
|
+
}
|
|
6130
|
+
if (message.hasQuietSpace !== false) {
|
|
6131
|
+
writer.uint32(72).bool(message.hasQuietSpace);
|
|
6132
|
+
}
|
|
6133
|
+
if (message.hasRetailExperience !== false) {
|
|
6134
|
+
writer.uint32(80).bool(message.hasRetailExperience);
|
|
6135
|
+
}
|
|
6136
|
+
for (const v of message.availability) {
|
|
6137
|
+
writer.uint32(90).string(v);
|
|
6138
|
+
}
|
|
6139
|
+
for (const v of message.assessments) {
|
|
6140
|
+
Assessment.encode(v, writer.uint32(98).fork()).join();
|
|
6141
|
+
}
|
|
6142
|
+
if (message.status !== 0) {
|
|
6143
|
+
writer.uint32(104).int32(message.status);
|
|
6144
|
+
}
|
|
6145
|
+
return writer;
|
|
6146
|
+
},
|
|
6147
|
+
decode(input, length) {
|
|
6148
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6149
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6150
|
+
const message = createBaseNinjaOnboardingApplication();
|
|
6151
|
+
while (reader.pos < end) {
|
|
6152
|
+
const tag = reader.uint32();
|
|
6153
|
+
switch (tag >>> 3) {
|
|
6154
|
+
case 1: {
|
|
6155
|
+
if (tag !== 10) {
|
|
6156
|
+
break;
|
|
6157
|
+
}
|
|
6158
|
+
message.id = reader.string();
|
|
6159
|
+
continue;
|
|
6160
|
+
}
|
|
6161
|
+
case 2: {
|
|
6162
|
+
if (tag !== 18) {
|
|
6163
|
+
break;
|
|
6164
|
+
}
|
|
6165
|
+
message.userId = reader.string();
|
|
6166
|
+
continue;
|
|
6167
|
+
}
|
|
6168
|
+
case 3: {
|
|
6169
|
+
if (tag !== 24) {
|
|
6170
|
+
break;
|
|
6171
|
+
}
|
|
6172
|
+
message.isAdult = reader.bool();
|
|
6173
|
+
continue;
|
|
6174
|
+
}
|
|
6175
|
+
case 4: {
|
|
6176
|
+
if (tag !== 32) {
|
|
6177
|
+
break;
|
|
6178
|
+
}
|
|
6179
|
+
message.isUsWorkAuthorized = reader.bool();
|
|
6180
|
+
continue;
|
|
6181
|
+
}
|
|
6182
|
+
case 5: {
|
|
6183
|
+
if (tag !== 42) {
|
|
6184
|
+
break;
|
|
6185
|
+
}
|
|
6186
|
+
message.languages.push(reader.string());
|
|
6187
|
+
continue;
|
|
6188
|
+
}
|
|
6189
|
+
case 6: {
|
|
6190
|
+
if (tag !== 48) {
|
|
6191
|
+
break;
|
|
6192
|
+
}
|
|
6193
|
+
message.uploadSpeedMbps = reader.int32();
|
|
6194
|
+
continue;
|
|
6195
|
+
}
|
|
6196
|
+
case 7: {
|
|
6197
|
+
if (tag !== 56) {
|
|
6198
|
+
break;
|
|
6199
|
+
}
|
|
6200
|
+
message.downloadSpeedMbps = reader.int32();
|
|
6201
|
+
continue;
|
|
6202
|
+
}
|
|
6203
|
+
case 8: {
|
|
6204
|
+
if (tag !== 64) {
|
|
6205
|
+
break;
|
|
6206
|
+
}
|
|
6207
|
+
message.hasRecentComputer = reader.bool();
|
|
6208
|
+
continue;
|
|
6209
|
+
}
|
|
6210
|
+
case 9: {
|
|
6211
|
+
if (tag !== 72) {
|
|
6212
|
+
break;
|
|
6213
|
+
}
|
|
6214
|
+
message.hasQuietSpace = reader.bool();
|
|
6215
|
+
continue;
|
|
6216
|
+
}
|
|
6217
|
+
case 10: {
|
|
6218
|
+
if (tag !== 80) {
|
|
6219
|
+
break;
|
|
6220
|
+
}
|
|
6221
|
+
message.hasRetailExperience = reader.bool();
|
|
6222
|
+
continue;
|
|
6223
|
+
}
|
|
6224
|
+
case 11: {
|
|
6225
|
+
if (tag !== 90) {
|
|
6226
|
+
break;
|
|
6227
|
+
}
|
|
6228
|
+
message.availability.push(reader.string());
|
|
6229
|
+
continue;
|
|
6230
|
+
}
|
|
6231
|
+
case 12: {
|
|
6232
|
+
if (tag !== 98) {
|
|
6233
|
+
break;
|
|
6234
|
+
}
|
|
6235
|
+
message.assessments.push(Assessment.decode(reader, reader.uint32()));
|
|
6236
|
+
continue;
|
|
6237
|
+
}
|
|
6238
|
+
case 13: {
|
|
6239
|
+
if (tag !== 104) {
|
|
6240
|
+
break;
|
|
6241
|
+
}
|
|
6242
|
+
message.status = reader.int32();
|
|
6243
|
+
continue;
|
|
6244
|
+
}
|
|
6245
|
+
}
|
|
6246
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6247
|
+
break;
|
|
6248
|
+
}
|
|
6249
|
+
reader.skip(tag & 7);
|
|
6250
|
+
}
|
|
6251
|
+
return message;
|
|
6252
|
+
},
|
|
6253
|
+
fromJSON(object) {
|
|
6254
|
+
return {
|
|
6255
|
+
id: isSet5(object.id) ? globalThis.String(object.id) : "",
|
|
6256
|
+
userId: isSet5(object.userId) ? globalThis.String(object.userId) : isSet5(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
6257
|
+
isAdult: isSet5(object.isAdult) ? globalThis.Boolean(object.isAdult) : isSet5(object.is_adult) ? globalThis.Boolean(object.is_adult) : false,
|
|
6258
|
+
isUsWorkAuthorized: isSet5(object.isUsWorkAuthorized) ? globalThis.Boolean(object.isUsWorkAuthorized) : isSet5(object.is_us_work_authorized) ? globalThis.Boolean(object.is_us_work_authorized) : false,
|
|
6259
|
+
languages: globalThis.Array.isArray(object?.languages) ? object.languages.map((e) => globalThis.String(e)) : [],
|
|
6260
|
+
uploadSpeedMbps: isSet5(object.uploadSpeedMbps) ? globalThis.Number(object.uploadSpeedMbps) : isSet5(object.upload_speed_mbps) ? globalThis.Number(object.upload_speed_mbps) : 0,
|
|
6261
|
+
downloadSpeedMbps: isSet5(object.downloadSpeedMbps) ? globalThis.Number(object.downloadSpeedMbps) : isSet5(object.download_speed_mbps) ? globalThis.Number(object.download_speed_mbps) : 0,
|
|
6262
|
+
hasRecentComputer: isSet5(object.hasRecentComputer) ? globalThis.Boolean(object.hasRecentComputer) : isSet5(object.has_recent_computer) ? globalThis.Boolean(object.has_recent_computer) : false,
|
|
6263
|
+
hasQuietSpace: isSet5(object.hasQuietSpace) ? globalThis.Boolean(object.hasQuietSpace) : isSet5(object.has_quiet_space) ? globalThis.Boolean(object.has_quiet_space) : false,
|
|
6264
|
+
hasRetailExperience: isSet5(object.hasRetailExperience) ? globalThis.Boolean(object.hasRetailExperience) : isSet5(object.has_retail_experience) ? globalThis.Boolean(object.has_retail_experience) : false,
|
|
6265
|
+
availability: globalThis.Array.isArray(object?.availability) ? object.availability.map((e) => globalThis.String(e)) : [],
|
|
6266
|
+
assessments: globalThis.Array.isArray(object?.assessments) ? object.assessments.map((e) => Assessment.fromJSON(e)) : [],
|
|
6267
|
+
status: isSet5(object.status) ? onboardingStatusFromJSON(object.status) : 0
|
|
6268
|
+
};
|
|
6269
|
+
},
|
|
6270
|
+
toJSON(message) {
|
|
6271
|
+
const obj = {};
|
|
6272
|
+
if (message.id !== "") {
|
|
6273
|
+
obj.id = message.id;
|
|
6274
|
+
}
|
|
6275
|
+
if (message.userId !== "") {
|
|
6276
|
+
obj.userId = message.userId;
|
|
6277
|
+
}
|
|
6278
|
+
if (message.isAdult !== false) {
|
|
6279
|
+
obj.isAdult = message.isAdult;
|
|
6280
|
+
}
|
|
6281
|
+
if (message.isUsWorkAuthorized !== false) {
|
|
6282
|
+
obj.isUsWorkAuthorized = message.isUsWorkAuthorized;
|
|
6283
|
+
}
|
|
6284
|
+
if (message.languages?.length) {
|
|
6285
|
+
obj.languages = message.languages;
|
|
6286
|
+
}
|
|
6287
|
+
if (message.uploadSpeedMbps !== 0) {
|
|
6288
|
+
obj.uploadSpeedMbps = Math.round(message.uploadSpeedMbps);
|
|
6289
|
+
}
|
|
6290
|
+
if (message.downloadSpeedMbps !== 0) {
|
|
6291
|
+
obj.downloadSpeedMbps = Math.round(message.downloadSpeedMbps);
|
|
6292
|
+
}
|
|
6293
|
+
if (message.hasRecentComputer !== false) {
|
|
6294
|
+
obj.hasRecentComputer = message.hasRecentComputer;
|
|
6295
|
+
}
|
|
6296
|
+
if (message.hasQuietSpace !== false) {
|
|
6297
|
+
obj.hasQuietSpace = message.hasQuietSpace;
|
|
6298
|
+
}
|
|
6299
|
+
if (message.hasRetailExperience !== false) {
|
|
6300
|
+
obj.hasRetailExperience = message.hasRetailExperience;
|
|
6301
|
+
}
|
|
6302
|
+
if (message.availability?.length) {
|
|
6303
|
+
obj.availability = message.availability;
|
|
6304
|
+
}
|
|
6305
|
+
if (message.assessments?.length) {
|
|
6306
|
+
obj.assessments = message.assessments.map((e) => Assessment.toJSON(e));
|
|
6307
|
+
}
|
|
6308
|
+
if (message.status !== 0) {
|
|
6309
|
+
obj.status = onboardingStatusToJSON(message.status);
|
|
6310
|
+
}
|
|
6311
|
+
return obj;
|
|
6312
|
+
},
|
|
6313
|
+
create(base) {
|
|
6314
|
+
return NinjaOnboardingApplication.fromPartial(base ?? {});
|
|
6315
|
+
},
|
|
6316
|
+
fromPartial(object) {
|
|
6317
|
+
const message = createBaseNinjaOnboardingApplication();
|
|
6318
|
+
message.id = object.id ?? "";
|
|
6319
|
+
message.userId = object.userId ?? "";
|
|
6320
|
+
message.isAdult = object.isAdult ?? false;
|
|
6321
|
+
message.isUsWorkAuthorized = object.isUsWorkAuthorized ?? false;
|
|
6322
|
+
message.languages = object.languages?.map((e) => e) || [];
|
|
6323
|
+
message.uploadSpeedMbps = object.uploadSpeedMbps ?? 0;
|
|
6324
|
+
message.downloadSpeedMbps = object.downloadSpeedMbps ?? 0;
|
|
6325
|
+
message.hasRecentComputer = object.hasRecentComputer ?? false;
|
|
6326
|
+
message.hasQuietSpace = object.hasQuietSpace ?? false;
|
|
6327
|
+
message.hasRetailExperience = object.hasRetailExperience ?? false;
|
|
6328
|
+
message.availability = object.availability?.map((e) => e) || [];
|
|
6329
|
+
message.assessments = object.assessments?.map((e) => Assessment.fromPartial(e)) || [];
|
|
6330
|
+
message.status = object.status ?? 0;
|
|
6331
|
+
return message;
|
|
6332
|
+
}
|
|
6333
|
+
};
|
|
6334
|
+
function createBaseGetNinjaOnboardingApplicationRequest() {
|
|
6335
|
+
return { userId: undefined };
|
|
6336
|
+
}
|
|
6337
|
+
var GetNinjaOnboardingApplicationRequest = {
|
|
6338
|
+
encode(message, writer = new BinaryWriter) {
|
|
6339
|
+
if (message.userId !== undefined) {
|
|
6340
|
+
writer.uint32(10).string(message.userId);
|
|
6341
|
+
}
|
|
6342
|
+
return writer;
|
|
6343
|
+
},
|
|
6344
|
+
decode(input, length) {
|
|
6345
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6346
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6347
|
+
const message = createBaseGetNinjaOnboardingApplicationRequest();
|
|
6348
|
+
while (reader.pos < end) {
|
|
6349
|
+
const tag = reader.uint32();
|
|
6350
|
+
switch (tag >>> 3) {
|
|
6351
|
+
case 1: {
|
|
6352
|
+
if (tag !== 10) {
|
|
6353
|
+
break;
|
|
6354
|
+
}
|
|
6355
|
+
message.userId = reader.string();
|
|
6356
|
+
continue;
|
|
6357
|
+
}
|
|
6358
|
+
}
|
|
6359
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6360
|
+
break;
|
|
6361
|
+
}
|
|
6362
|
+
reader.skip(tag & 7);
|
|
6363
|
+
}
|
|
6364
|
+
return message;
|
|
6365
|
+
},
|
|
6366
|
+
fromJSON(object) {
|
|
6367
|
+
return {
|
|
6368
|
+
userId: isSet5(object.userId) ? globalThis.String(object.userId) : isSet5(object.user_id) ? globalThis.String(object.user_id) : undefined
|
|
6369
|
+
};
|
|
6370
|
+
},
|
|
6371
|
+
toJSON(message) {
|
|
6372
|
+
const obj = {};
|
|
6373
|
+
if (message.userId !== undefined) {
|
|
6374
|
+
obj.userId = message.userId;
|
|
6375
|
+
}
|
|
6376
|
+
return obj;
|
|
6377
|
+
},
|
|
6378
|
+
create(base) {
|
|
6379
|
+
return GetNinjaOnboardingApplicationRequest.fromPartial(base ?? {});
|
|
6380
|
+
},
|
|
6381
|
+
fromPartial(object) {
|
|
6382
|
+
const message = createBaseGetNinjaOnboardingApplicationRequest();
|
|
6383
|
+
message.userId = object.userId ?? undefined;
|
|
6384
|
+
return message;
|
|
6385
|
+
}
|
|
6386
|
+
};
|
|
6387
|
+
function createBaseGetNinjaOnboardingApplicationResponse() {
|
|
6388
|
+
return { application: undefined };
|
|
6389
|
+
}
|
|
6390
|
+
var GetNinjaOnboardingApplicationResponse = {
|
|
6391
|
+
encode(message, writer = new BinaryWriter) {
|
|
6392
|
+
if (message.application !== undefined) {
|
|
6393
|
+
NinjaOnboardingApplication.encode(message.application, writer.uint32(10).fork()).join();
|
|
6394
|
+
}
|
|
6395
|
+
return writer;
|
|
6396
|
+
},
|
|
6397
|
+
decode(input, length) {
|
|
6398
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6399
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6400
|
+
const message = createBaseGetNinjaOnboardingApplicationResponse();
|
|
6401
|
+
while (reader.pos < end) {
|
|
6402
|
+
const tag = reader.uint32();
|
|
6403
|
+
switch (tag >>> 3) {
|
|
6404
|
+
case 1: {
|
|
6405
|
+
if (tag !== 10) {
|
|
6406
|
+
break;
|
|
6407
|
+
}
|
|
6408
|
+
message.application = NinjaOnboardingApplication.decode(reader, reader.uint32());
|
|
6409
|
+
continue;
|
|
6410
|
+
}
|
|
6411
|
+
}
|
|
6412
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6413
|
+
break;
|
|
6414
|
+
}
|
|
6415
|
+
reader.skip(tag & 7);
|
|
6416
|
+
}
|
|
6417
|
+
return message;
|
|
6418
|
+
},
|
|
6419
|
+
fromJSON(object) {
|
|
6420
|
+
return {
|
|
6421
|
+
application: isSet5(object.application) ? NinjaOnboardingApplication.fromJSON(object.application) : undefined
|
|
6422
|
+
};
|
|
6423
|
+
},
|
|
6424
|
+
toJSON(message) {
|
|
6425
|
+
const obj = {};
|
|
6426
|
+
if (message.application !== undefined) {
|
|
6427
|
+
obj.application = NinjaOnboardingApplication.toJSON(message.application);
|
|
6428
|
+
}
|
|
6429
|
+
return obj;
|
|
6430
|
+
},
|
|
6431
|
+
create(base) {
|
|
6432
|
+
return GetNinjaOnboardingApplicationResponse.fromPartial(base ?? {});
|
|
6433
|
+
},
|
|
6434
|
+
fromPartial(object) {
|
|
6435
|
+
const message = createBaseGetNinjaOnboardingApplicationResponse();
|
|
6436
|
+
message.application = object.application !== undefined && object.application !== null ? NinjaOnboardingApplication.fromPartial(object.application) : undefined;
|
|
6437
|
+
return message;
|
|
6438
|
+
}
|
|
6439
|
+
};
|
|
6440
|
+
function createBaseUpdateNinjaOnboardingApplicationRequest() {
|
|
6441
|
+
return {
|
|
6442
|
+
isAdult: undefined,
|
|
6443
|
+
isUsWorkAuthorized: undefined,
|
|
6444
|
+
languages: [],
|
|
6445
|
+
uploadSpeedMbps: undefined,
|
|
6446
|
+
downloadSpeedMbps: undefined,
|
|
6447
|
+
hasRecentComputer: undefined,
|
|
6448
|
+
hasQuietSpace: undefined,
|
|
6449
|
+
hasRetailExperience: undefined,
|
|
6450
|
+
availability: [],
|
|
6451
|
+
assessments: []
|
|
6452
|
+
};
|
|
6453
|
+
}
|
|
6454
|
+
var UpdateNinjaOnboardingApplicationRequest = {
|
|
6455
|
+
encode(message, writer = new BinaryWriter) {
|
|
6456
|
+
if (message.isAdult !== undefined) {
|
|
6457
|
+
writer.uint32(8).bool(message.isAdult);
|
|
6458
|
+
}
|
|
6459
|
+
if (message.isUsWorkAuthorized !== undefined) {
|
|
6460
|
+
writer.uint32(16).bool(message.isUsWorkAuthorized);
|
|
6461
|
+
}
|
|
6462
|
+
for (const v of message.languages) {
|
|
6463
|
+
writer.uint32(26).string(v);
|
|
6464
|
+
}
|
|
6465
|
+
if (message.uploadSpeedMbps !== undefined) {
|
|
6466
|
+
writer.uint32(32).int32(message.uploadSpeedMbps);
|
|
6467
|
+
}
|
|
6468
|
+
if (message.downloadSpeedMbps !== undefined) {
|
|
6469
|
+
writer.uint32(40).int32(message.downloadSpeedMbps);
|
|
6470
|
+
}
|
|
6471
|
+
if (message.hasRecentComputer !== undefined) {
|
|
6472
|
+
writer.uint32(48).bool(message.hasRecentComputer);
|
|
6473
|
+
}
|
|
6474
|
+
if (message.hasQuietSpace !== undefined) {
|
|
6475
|
+
writer.uint32(56).bool(message.hasQuietSpace);
|
|
6476
|
+
}
|
|
6477
|
+
if (message.hasRetailExperience !== undefined) {
|
|
6478
|
+
writer.uint32(64).bool(message.hasRetailExperience);
|
|
6479
|
+
}
|
|
6480
|
+
for (const v of message.availability) {
|
|
6481
|
+
writer.uint32(74).string(v);
|
|
6482
|
+
}
|
|
6483
|
+
for (const v of message.assessments) {
|
|
6484
|
+
Assessment.encode(v, writer.uint32(82).fork()).join();
|
|
6485
|
+
}
|
|
6486
|
+
return writer;
|
|
6487
|
+
},
|
|
6488
|
+
decode(input, length) {
|
|
6489
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6490
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6491
|
+
const message = createBaseUpdateNinjaOnboardingApplicationRequest();
|
|
6492
|
+
while (reader.pos < end) {
|
|
6493
|
+
const tag = reader.uint32();
|
|
6494
|
+
switch (tag >>> 3) {
|
|
6495
|
+
case 1: {
|
|
6496
|
+
if (tag !== 8) {
|
|
6497
|
+
break;
|
|
6498
|
+
}
|
|
6499
|
+
message.isAdult = reader.bool();
|
|
6500
|
+
continue;
|
|
6501
|
+
}
|
|
6502
|
+
case 2: {
|
|
6503
|
+
if (tag !== 16) {
|
|
6504
|
+
break;
|
|
6505
|
+
}
|
|
6506
|
+
message.isUsWorkAuthorized = reader.bool();
|
|
6507
|
+
continue;
|
|
6508
|
+
}
|
|
6509
|
+
case 3: {
|
|
6510
|
+
if (tag !== 26) {
|
|
6511
|
+
break;
|
|
6512
|
+
}
|
|
6513
|
+
message.languages.push(reader.string());
|
|
6514
|
+
continue;
|
|
6515
|
+
}
|
|
6516
|
+
case 4: {
|
|
6517
|
+
if (tag !== 32) {
|
|
6518
|
+
break;
|
|
6519
|
+
}
|
|
6520
|
+
message.uploadSpeedMbps = reader.int32();
|
|
6521
|
+
continue;
|
|
6522
|
+
}
|
|
6523
|
+
case 5: {
|
|
6524
|
+
if (tag !== 40) {
|
|
6525
|
+
break;
|
|
6526
|
+
}
|
|
6527
|
+
message.downloadSpeedMbps = reader.int32();
|
|
6528
|
+
continue;
|
|
6529
|
+
}
|
|
6530
|
+
case 6: {
|
|
6531
|
+
if (tag !== 48) {
|
|
6532
|
+
break;
|
|
6533
|
+
}
|
|
6534
|
+
message.hasRecentComputer = reader.bool();
|
|
6535
|
+
continue;
|
|
6536
|
+
}
|
|
6537
|
+
case 7: {
|
|
6538
|
+
if (tag !== 56) {
|
|
6539
|
+
break;
|
|
6540
|
+
}
|
|
6541
|
+
message.hasQuietSpace = reader.bool();
|
|
6542
|
+
continue;
|
|
6543
|
+
}
|
|
6544
|
+
case 8: {
|
|
6545
|
+
if (tag !== 64) {
|
|
6546
|
+
break;
|
|
6547
|
+
}
|
|
6548
|
+
message.hasRetailExperience = reader.bool();
|
|
6549
|
+
continue;
|
|
6550
|
+
}
|
|
6551
|
+
case 9: {
|
|
6552
|
+
if (tag !== 74) {
|
|
6553
|
+
break;
|
|
6554
|
+
}
|
|
6555
|
+
message.availability.push(reader.string());
|
|
6556
|
+
continue;
|
|
6557
|
+
}
|
|
6558
|
+
case 10: {
|
|
6559
|
+
if (tag !== 82) {
|
|
6560
|
+
break;
|
|
6561
|
+
}
|
|
6562
|
+
message.assessments.push(Assessment.decode(reader, reader.uint32()));
|
|
6563
|
+
continue;
|
|
6564
|
+
}
|
|
6565
|
+
}
|
|
6566
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6567
|
+
break;
|
|
6568
|
+
}
|
|
6569
|
+
reader.skip(tag & 7);
|
|
6570
|
+
}
|
|
6571
|
+
return message;
|
|
6572
|
+
},
|
|
6573
|
+
fromJSON(object) {
|
|
6574
|
+
return {
|
|
6575
|
+
isAdult: isSet5(object.isAdult) ? globalThis.Boolean(object.isAdult) : isSet5(object.is_adult) ? globalThis.Boolean(object.is_adult) : undefined,
|
|
6576
|
+
isUsWorkAuthorized: isSet5(object.isUsWorkAuthorized) ? globalThis.Boolean(object.isUsWorkAuthorized) : isSet5(object.is_us_work_authorized) ? globalThis.Boolean(object.is_us_work_authorized) : undefined,
|
|
6577
|
+
languages: globalThis.Array.isArray(object?.languages) ? object.languages.map((e) => globalThis.String(e)) : [],
|
|
6578
|
+
uploadSpeedMbps: isSet5(object.uploadSpeedMbps) ? globalThis.Number(object.uploadSpeedMbps) : isSet5(object.upload_speed_mbps) ? globalThis.Number(object.upload_speed_mbps) : undefined,
|
|
6579
|
+
downloadSpeedMbps: isSet5(object.downloadSpeedMbps) ? globalThis.Number(object.downloadSpeedMbps) : isSet5(object.download_speed_mbps) ? globalThis.Number(object.download_speed_mbps) : undefined,
|
|
6580
|
+
hasRecentComputer: isSet5(object.hasRecentComputer) ? globalThis.Boolean(object.hasRecentComputer) : isSet5(object.has_recent_computer) ? globalThis.Boolean(object.has_recent_computer) : undefined,
|
|
6581
|
+
hasQuietSpace: isSet5(object.hasQuietSpace) ? globalThis.Boolean(object.hasQuietSpace) : isSet5(object.has_quiet_space) ? globalThis.Boolean(object.has_quiet_space) : undefined,
|
|
6582
|
+
hasRetailExperience: isSet5(object.hasRetailExperience) ? globalThis.Boolean(object.hasRetailExperience) : isSet5(object.has_retail_experience) ? globalThis.Boolean(object.has_retail_experience) : undefined,
|
|
6583
|
+
availability: globalThis.Array.isArray(object?.availability) ? object.availability.map((e) => globalThis.String(e)) : [],
|
|
6584
|
+
assessments: globalThis.Array.isArray(object?.assessments) ? object.assessments.map((e) => Assessment.fromJSON(e)) : []
|
|
6585
|
+
};
|
|
6586
|
+
},
|
|
6587
|
+
toJSON(message) {
|
|
6588
|
+
const obj = {};
|
|
6589
|
+
if (message.isAdult !== undefined) {
|
|
6590
|
+
obj.isAdult = message.isAdult;
|
|
6591
|
+
}
|
|
6592
|
+
if (message.isUsWorkAuthorized !== undefined) {
|
|
6593
|
+
obj.isUsWorkAuthorized = message.isUsWorkAuthorized;
|
|
6594
|
+
}
|
|
6595
|
+
if (message.languages?.length) {
|
|
6596
|
+
obj.languages = message.languages;
|
|
6597
|
+
}
|
|
6598
|
+
if (message.uploadSpeedMbps !== undefined) {
|
|
6599
|
+
obj.uploadSpeedMbps = Math.round(message.uploadSpeedMbps);
|
|
6600
|
+
}
|
|
6601
|
+
if (message.downloadSpeedMbps !== undefined) {
|
|
6602
|
+
obj.downloadSpeedMbps = Math.round(message.downloadSpeedMbps);
|
|
6603
|
+
}
|
|
6604
|
+
if (message.hasRecentComputer !== undefined) {
|
|
6605
|
+
obj.hasRecentComputer = message.hasRecentComputer;
|
|
6606
|
+
}
|
|
6607
|
+
if (message.hasQuietSpace !== undefined) {
|
|
6608
|
+
obj.hasQuietSpace = message.hasQuietSpace;
|
|
6609
|
+
}
|
|
6610
|
+
if (message.hasRetailExperience !== undefined) {
|
|
6611
|
+
obj.hasRetailExperience = message.hasRetailExperience;
|
|
6612
|
+
}
|
|
6613
|
+
if (message.availability?.length) {
|
|
6614
|
+
obj.availability = message.availability;
|
|
6615
|
+
}
|
|
6616
|
+
if (message.assessments?.length) {
|
|
6617
|
+
obj.assessments = message.assessments.map((e) => Assessment.toJSON(e));
|
|
6618
|
+
}
|
|
6619
|
+
return obj;
|
|
6620
|
+
},
|
|
6621
|
+
create(base) {
|
|
6622
|
+
return UpdateNinjaOnboardingApplicationRequest.fromPartial(base ?? {});
|
|
6623
|
+
},
|
|
6624
|
+
fromPartial(object) {
|
|
6625
|
+
const message = createBaseUpdateNinjaOnboardingApplicationRequest();
|
|
6626
|
+
message.isAdult = object.isAdult ?? undefined;
|
|
6627
|
+
message.isUsWorkAuthorized = object.isUsWorkAuthorized ?? undefined;
|
|
6628
|
+
message.languages = object.languages?.map((e) => e) || [];
|
|
6629
|
+
message.uploadSpeedMbps = object.uploadSpeedMbps ?? undefined;
|
|
6630
|
+
message.downloadSpeedMbps = object.downloadSpeedMbps ?? undefined;
|
|
6631
|
+
message.hasRecentComputer = object.hasRecentComputer ?? undefined;
|
|
6632
|
+
message.hasQuietSpace = object.hasQuietSpace ?? undefined;
|
|
6633
|
+
message.hasRetailExperience = object.hasRetailExperience ?? undefined;
|
|
6634
|
+
message.availability = object.availability?.map((e) => e) || [];
|
|
6635
|
+
message.assessments = object.assessments?.map((e) => Assessment.fromPartial(e)) || [];
|
|
6636
|
+
return message;
|
|
6637
|
+
}
|
|
6638
|
+
};
|
|
6639
|
+
function createBaseUpdateNinjaOnboardingApplicationResponse() {
|
|
6640
|
+
return { application: undefined };
|
|
6641
|
+
}
|
|
6642
|
+
var UpdateNinjaOnboardingApplicationResponse = {
|
|
6643
|
+
encode(message, writer = new BinaryWriter) {
|
|
6644
|
+
if (message.application !== undefined) {
|
|
6645
|
+
NinjaOnboardingApplication.encode(message.application, writer.uint32(10).fork()).join();
|
|
6646
|
+
}
|
|
6647
|
+
return writer;
|
|
6648
|
+
},
|
|
6649
|
+
decode(input, length) {
|
|
6650
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6651
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6652
|
+
const message = createBaseUpdateNinjaOnboardingApplicationResponse();
|
|
6653
|
+
while (reader.pos < end) {
|
|
6654
|
+
const tag = reader.uint32();
|
|
6655
|
+
switch (tag >>> 3) {
|
|
6656
|
+
case 1: {
|
|
6657
|
+
if (tag !== 10) {
|
|
6658
|
+
break;
|
|
6659
|
+
}
|
|
6660
|
+
message.application = NinjaOnboardingApplication.decode(reader, reader.uint32());
|
|
6661
|
+
continue;
|
|
6662
|
+
}
|
|
6663
|
+
}
|
|
6664
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6665
|
+
break;
|
|
6666
|
+
}
|
|
6667
|
+
reader.skip(tag & 7);
|
|
6668
|
+
}
|
|
6669
|
+
return message;
|
|
6670
|
+
},
|
|
6671
|
+
fromJSON(object) {
|
|
6672
|
+
return {
|
|
6673
|
+
application: isSet5(object.application) ? NinjaOnboardingApplication.fromJSON(object.application) : undefined
|
|
6674
|
+
};
|
|
6675
|
+
},
|
|
6676
|
+
toJSON(message) {
|
|
6677
|
+
const obj = {};
|
|
6678
|
+
if (message.application !== undefined) {
|
|
6679
|
+
obj.application = NinjaOnboardingApplication.toJSON(message.application);
|
|
6680
|
+
}
|
|
6681
|
+
return obj;
|
|
6682
|
+
},
|
|
6683
|
+
create(base) {
|
|
6684
|
+
return UpdateNinjaOnboardingApplicationResponse.fromPartial(base ?? {});
|
|
6685
|
+
},
|
|
6686
|
+
fromPartial(object) {
|
|
6687
|
+
const message = createBaseUpdateNinjaOnboardingApplicationResponse();
|
|
6688
|
+
message.application = object.application !== undefined && object.application !== null ? NinjaOnboardingApplication.fromPartial(object.application) : undefined;
|
|
6689
|
+
return message;
|
|
6690
|
+
}
|
|
6691
|
+
};
|
|
6692
|
+
function createBaseSubmitNinjaOnboardingApplicationRequest() {
|
|
6693
|
+
return {};
|
|
6694
|
+
}
|
|
6695
|
+
var SubmitNinjaOnboardingApplicationRequest = {
|
|
6696
|
+
encode(_, writer = new BinaryWriter) {
|
|
6697
|
+
return writer;
|
|
6698
|
+
},
|
|
6699
|
+
decode(input, length) {
|
|
6700
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6701
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6702
|
+
const message = createBaseSubmitNinjaOnboardingApplicationRequest();
|
|
6703
|
+
while (reader.pos < end) {
|
|
6704
|
+
const tag = reader.uint32();
|
|
6705
|
+
switch (tag >>> 3) {
|
|
6706
|
+
}
|
|
6707
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6708
|
+
break;
|
|
6709
|
+
}
|
|
6710
|
+
reader.skip(tag & 7);
|
|
6711
|
+
}
|
|
6712
|
+
return message;
|
|
6713
|
+
},
|
|
6714
|
+
fromJSON(_) {
|
|
6715
|
+
return {};
|
|
6716
|
+
},
|
|
6717
|
+
toJSON(_) {
|
|
6718
|
+
const obj = {};
|
|
6719
|
+
return obj;
|
|
6720
|
+
},
|
|
6721
|
+
create(base) {
|
|
6722
|
+
return SubmitNinjaOnboardingApplicationRequest.fromPartial(base ?? {});
|
|
6723
|
+
},
|
|
6724
|
+
fromPartial(_) {
|
|
6725
|
+
const message = createBaseSubmitNinjaOnboardingApplicationRequest();
|
|
6726
|
+
return message;
|
|
6727
|
+
}
|
|
6728
|
+
};
|
|
6729
|
+
function createBaseSubmitNinjaOnboardingApplicationResponse() {
|
|
6730
|
+
return { application: undefined };
|
|
6731
|
+
}
|
|
6732
|
+
var SubmitNinjaOnboardingApplicationResponse = {
|
|
6733
|
+
encode(message, writer = new BinaryWriter) {
|
|
6734
|
+
if (message.application !== undefined) {
|
|
6735
|
+
NinjaOnboardingApplication.encode(message.application, writer.uint32(10).fork()).join();
|
|
6736
|
+
}
|
|
6737
|
+
return writer;
|
|
6738
|
+
},
|
|
6739
|
+
decode(input, length) {
|
|
6740
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6741
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6742
|
+
const message = createBaseSubmitNinjaOnboardingApplicationResponse();
|
|
6743
|
+
while (reader.pos < end) {
|
|
6744
|
+
const tag = reader.uint32();
|
|
6745
|
+
switch (tag >>> 3) {
|
|
6746
|
+
case 1: {
|
|
6747
|
+
if (tag !== 10) {
|
|
6748
|
+
break;
|
|
6749
|
+
}
|
|
6750
|
+
message.application = NinjaOnboardingApplication.decode(reader, reader.uint32());
|
|
6751
|
+
continue;
|
|
6752
|
+
}
|
|
6753
|
+
}
|
|
6754
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6755
|
+
break;
|
|
6756
|
+
}
|
|
6757
|
+
reader.skip(tag & 7);
|
|
6758
|
+
}
|
|
6759
|
+
return message;
|
|
6760
|
+
},
|
|
6761
|
+
fromJSON(object) {
|
|
6762
|
+
return {
|
|
6763
|
+
application: isSet5(object.application) ? NinjaOnboardingApplication.fromJSON(object.application) : undefined
|
|
6764
|
+
};
|
|
6765
|
+
},
|
|
6766
|
+
toJSON(message) {
|
|
6767
|
+
const obj = {};
|
|
6768
|
+
if (message.application !== undefined) {
|
|
6769
|
+
obj.application = NinjaOnboardingApplication.toJSON(message.application);
|
|
6770
|
+
}
|
|
6771
|
+
return obj;
|
|
6772
|
+
},
|
|
6773
|
+
create(base) {
|
|
6774
|
+
return SubmitNinjaOnboardingApplicationResponse.fromPartial(base ?? {});
|
|
6775
|
+
},
|
|
6776
|
+
fromPartial(object) {
|
|
6777
|
+
const message = createBaseSubmitNinjaOnboardingApplicationResponse();
|
|
6778
|
+
message.application = object.application !== undefined && object.application !== null ? NinjaOnboardingApplication.fromPartial(object.application) : undefined;
|
|
6779
|
+
return message;
|
|
6780
|
+
}
|
|
6781
|
+
};
|
|
6782
|
+
function createBaseSetNinjaOnboardingStatusRequest() {
|
|
6783
|
+
return { userId: "", status: 0 };
|
|
6784
|
+
}
|
|
6785
|
+
var SetNinjaOnboardingStatusRequest = {
|
|
6786
|
+
encode(message, writer = new BinaryWriter) {
|
|
6787
|
+
if (message.userId !== "") {
|
|
6788
|
+
writer.uint32(10).string(message.userId);
|
|
6789
|
+
}
|
|
6790
|
+
if (message.status !== 0) {
|
|
6791
|
+
writer.uint32(16).int32(message.status);
|
|
6792
|
+
}
|
|
6793
|
+
return writer;
|
|
6794
|
+
},
|
|
6795
|
+
decode(input, length) {
|
|
6796
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6797
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6798
|
+
const message = createBaseSetNinjaOnboardingStatusRequest();
|
|
6799
|
+
while (reader.pos < end) {
|
|
6800
|
+
const tag = reader.uint32();
|
|
6801
|
+
switch (tag >>> 3) {
|
|
6802
|
+
case 1: {
|
|
6803
|
+
if (tag !== 10) {
|
|
6804
|
+
break;
|
|
6805
|
+
}
|
|
6806
|
+
message.userId = reader.string();
|
|
6807
|
+
continue;
|
|
6808
|
+
}
|
|
6809
|
+
case 2: {
|
|
6810
|
+
if (tag !== 16) {
|
|
6811
|
+
break;
|
|
6812
|
+
}
|
|
6813
|
+
message.status = reader.int32();
|
|
6814
|
+
continue;
|
|
6815
|
+
}
|
|
6816
|
+
}
|
|
6817
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6818
|
+
break;
|
|
6819
|
+
}
|
|
6820
|
+
reader.skip(tag & 7);
|
|
6821
|
+
}
|
|
6822
|
+
return message;
|
|
6823
|
+
},
|
|
6824
|
+
fromJSON(object) {
|
|
6825
|
+
return {
|
|
6826
|
+
userId: isSet5(object.userId) ? globalThis.String(object.userId) : isSet5(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
6827
|
+
status: isSet5(object.status) ? onboardingStatusFromJSON(object.status) : 0
|
|
6828
|
+
};
|
|
6829
|
+
},
|
|
6830
|
+
toJSON(message) {
|
|
6831
|
+
const obj = {};
|
|
6832
|
+
if (message.userId !== "") {
|
|
6833
|
+
obj.userId = message.userId;
|
|
6834
|
+
}
|
|
6835
|
+
if (message.status !== 0) {
|
|
6836
|
+
obj.status = onboardingStatusToJSON(message.status);
|
|
6837
|
+
}
|
|
6838
|
+
return obj;
|
|
6839
|
+
},
|
|
6840
|
+
create(base) {
|
|
6841
|
+
return SetNinjaOnboardingStatusRequest.fromPartial(base ?? {});
|
|
6842
|
+
},
|
|
6843
|
+
fromPartial(object) {
|
|
6844
|
+
const message = createBaseSetNinjaOnboardingStatusRequest();
|
|
6845
|
+
message.userId = object.userId ?? "";
|
|
6846
|
+
message.status = object.status ?? 0;
|
|
6847
|
+
return message;
|
|
6848
|
+
}
|
|
6849
|
+
};
|
|
6850
|
+
function createBaseSetNinjaOnboardingStatusResponse() {
|
|
6851
|
+
return { application: undefined };
|
|
6852
|
+
}
|
|
6853
|
+
var SetNinjaOnboardingStatusResponse = {
|
|
6854
|
+
encode(message, writer = new BinaryWriter) {
|
|
6855
|
+
if (message.application !== undefined) {
|
|
6856
|
+
NinjaOnboardingApplication.encode(message.application, writer.uint32(10).fork()).join();
|
|
6857
|
+
}
|
|
6858
|
+
return writer;
|
|
6859
|
+
},
|
|
6860
|
+
decode(input, length) {
|
|
6861
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6862
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6863
|
+
const message = createBaseSetNinjaOnboardingStatusResponse();
|
|
6864
|
+
while (reader.pos < end) {
|
|
6865
|
+
const tag = reader.uint32();
|
|
6866
|
+
switch (tag >>> 3) {
|
|
6867
|
+
case 1: {
|
|
6868
|
+
if (tag !== 10) {
|
|
6869
|
+
break;
|
|
6870
|
+
}
|
|
6871
|
+
message.application = NinjaOnboardingApplication.decode(reader, reader.uint32());
|
|
6872
|
+
continue;
|
|
6873
|
+
}
|
|
6874
|
+
}
|
|
6875
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6876
|
+
break;
|
|
6877
|
+
}
|
|
6878
|
+
reader.skip(tag & 7);
|
|
6879
|
+
}
|
|
6880
|
+
return message;
|
|
6881
|
+
},
|
|
6882
|
+
fromJSON(object) {
|
|
6883
|
+
return {
|
|
6884
|
+
application: isSet5(object.application) ? NinjaOnboardingApplication.fromJSON(object.application) : undefined
|
|
6885
|
+
};
|
|
6886
|
+
},
|
|
6887
|
+
toJSON(message) {
|
|
6888
|
+
const obj = {};
|
|
6889
|
+
if (message.application !== undefined) {
|
|
6890
|
+
obj.application = NinjaOnboardingApplication.toJSON(message.application);
|
|
6891
|
+
}
|
|
6892
|
+
return obj;
|
|
6893
|
+
},
|
|
6894
|
+
create(base) {
|
|
6895
|
+
return SetNinjaOnboardingStatusResponse.fromPartial(base ?? {});
|
|
6896
|
+
},
|
|
6897
|
+
fromPartial(object) {
|
|
6898
|
+
const message = createBaseSetNinjaOnboardingStatusResponse();
|
|
6899
|
+
message.application = object.application !== undefined && object.application !== null ? NinjaOnboardingApplication.fromPartial(object.application) : undefined;
|
|
6900
|
+
return message;
|
|
6901
|
+
}
|
|
6902
|
+
};
|
|
6903
|
+
var NinjaOnboardingServiceDefinition = {
|
|
6904
|
+
name: "NinjaOnboardingService",
|
|
6905
|
+
fullName: "zenu.users.v1.NinjaOnboardingService",
|
|
6906
|
+
methods: {
|
|
6907
|
+
getNinjaOnboardingApplication: {
|
|
6908
|
+
name: "GetNinjaOnboardingApplication",
|
|
6909
|
+
requestType: GetNinjaOnboardingApplicationRequest,
|
|
6910
|
+
requestStream: false,
|
|
6911
|
+
responseType: GetNinjaOnboardingApplicationResponse,
|
|
6912
|
+
responseStream: false,
|
|
6913
|
+
options: {}
|
|
6914
|
+
},
|
|
6915
|
+
updateNinjaOnboardingApplication: {
|
|
6916
|
+
name: "UpdateNinjaOnboardingApplication",
|
|
6917
|
+
requestType: UpdateNinjaOnboardingApplicationRequest,
|
|
6918
|
+
requestStream: false,
|
|
6919
|
+
responseType: UpdateNinjaOnboardingApplicationResponse,
|
|
6920
|
+
responseStream: false,
|
|
6921
|
+
options: {}
|
|
6922
|
+
},
|
|
6923
|
+
submitNinjaOnboardingApplication: {
|
|
6924
|
+
name: "SubmitNinjaOnboardingApplication",
|
|
6925
|
+
requestType: SubmitNinjaOnboardingApplicationRequest,
|
|
6926
|
+
requestStream: false,
|
|
6927
|
+
responseType: SubmitNinjaOnboardingApplicationResponse,
|
|
6928
|
+
responseStream: false,
|
|
6929
|
+
options: {}
|
|
6930
|
+
},
|
|
6931
|
+
setNinjaOnboardingStatus: {
|
|
6932
|
+
name: "SetNinjaOnboardingStatus",
|
|
6933
|
+
requestType: SetNinjaOnboardingStatusRequest,
|
|
6934
|
+
requestStream: false,
|
|
6935
|
+
responseType: SetNinjaOnboardingStatusResponse,
|
|
6936
|
+
responseStream: false,
|
|
6937
|
+
options: {}
|
|
6938
|
+
}
|
|
6939
|
+
}
|
|
6940
|
+
};
|
|
6941
|
+
function isSet5(value) {
|
|
6942
|
+
return value !== null && value !== undefined;
|
|
6943
|
+
}
|
|
5962
6944
|
export {
|
|
5963
6945
|
roleToJSON,
|
|
5964
6946
|
roleScopeToJSON,
|
|
5965
6947
|
roleScopeFromJSON,
|
|
5966
6948
|
roleFromJSON,
|
|
6949
|
+
onboardingStatusToJSON,
|
|
6950
|
+
onboardingStatusFromJSON,
|
|
5967
6951
|
createZenuClient,
|
|
5968
6952
|
WhoAmIResponse,
|
|
5969
6953
|
WhoAmIRequest,
|
|
@@ -5972,22 +6956,33 @@ export {
|
|
|
5972
6956
|
UserAgreementsServiceDefinition,
|
|
5973
6957
|
UserAgreement,
|
|
5974
6958
|
User,
|
|
6959
|
+
UpdateNinjaOnboardingApplicationResponse,
|
|
6960
|
+
UpdateNinjaOnboardingApplicationRequest,
|
|
5975
6961
|
UpdateAgreementVersionResponse,
|
|
5976
6962
|
UpdateAgreementVersionRequest,
|
|
5977
6963
|
UpdateAgreementResponse,
|
|
5978
6964
|
UpdateAgreementRequest,
|
|
6965
|
+
SubmitNinjaOnboardingApplicationResponse,
|
|
6966
|
+
SubmitNinjaOnboardingApplicationRequest,
|
|
6967
|
+
SetNinjaOnboardingStatusResponse,
|
|
6968
|
+
SetNinjaOnboardingStatusRequest,
|
|
5979
6969
|
SayHelloResponse,
|
|
5980
6970
|
SayHelloRequest,
|
|
5981
6971
|
RoleScope,
|
|
5982
6972
|
Role,
|
|
5983
6973
|
PublishAgreementVersionResponse,
|
|
5984
6974
|
PublishAgreementVersionRequest,
|
|
6975
|
+
OnboardingStatus,
|
|
6976
|
+
NinjaOnboardingServiceDefinition,
|
|
6977
|
+
NinjaOnboardingApplication,
|
|
5985
6978
|
ListUserAgreementsResponse,
|
|
5986
6979
|
ListUserAgreementsRequest,
|
|
5987
6980
|
ListAgreementsResponse,
|
|
5988
6981
|
ListAgreementsRequest,
|
|
5989
6982
|
ListAgreementVersionsResponse,
|
|
5990
6983
|
ListAgreementVersionsRequest,
|
|
6984
|
+
GetNinjaOnboardingApplicationResponse,
|
|
6985
|
+
GetNinjaOnboardingApplicationRequest,
|
|
5991
6986
|
GetAgreementVersionResponse,
|
|
5992
6987
|
GetAgreementVersionRequest,
|
|
5993
6988
|
GetAgreementResponse,
|
|
@@ -6000,6 +6995,7 @@ export {
|
|
|
6000
6995
|
CreateAgreementVersionRequest,
|
|
6001
6996
|
CreateAgreementResponse,
|
|
6002
6997
|
CreateAgreementRequest,
|
|
6998
|
+
Assessment,
|
|
6003
6999
|
AgreementsServiceDefinition,
|
|
6004
7000
|
AgreementVersionSummary,
|
|
6005
7001
|
AgreementVersion,
|