@gofynd/fdk-client-javascript 1.4.2-beta.3 → 1.4.2-beta.4
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/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
- package/sdk/application/Order/OrderApplicationModel.js +6 -0
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +27 -1
- package/sdk/application/Payment/PaymentApplicationModel.js +19 -0
- package/sdk/application/User/UserApplicationClient.d.ts +2 -2
- package/sdk/application/User/UserApplicationClient.js +4 -7
- package/sdk/application/User/UserApplicationModel.d.ts +32 -27
- package/sdk/application/User/UserApplicationModel.js +22 -32
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +26 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +182 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +70 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +44 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +34 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +44 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +18 -1
- package/sdk/platform/Content/ContentPlatformModel.js +20 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +7 -4
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +14 -1
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +16 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +12 -0
- package/sdk/platform/Order/OrderPlatformModel.js +12 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -1
- package/sdk/platform/Payment/PaymentPlatformModel.js +19 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +7 -6
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +11 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +170 -33
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +171 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationClient.js +19 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +13 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +83 -13
- package/sdk/platform/User/UserPlatformModel.js +82 -12
|
@@ -108,7 +108,7 @@ export = UserPlatformModel;
|
|
|
108
108
|
*/
|
|
109
109
|
/**
|
|
110
110
|
* @typedef UserSearchResponseSchema
|
|
111
|
-
* @property {
|
|
111
|
+
* @property {UserSearchSchema[]} [users]
|
|
112
112
|
*/
|
|
113
113
|
/**
|
|
114
114
|
* @typedef CustomerListResponseSchema
|
|
@@ -138,8 +138,14 @@ export = UserPlatformModel;
|
|
|
138
138
|
* @property {string[]} [session_ids]
|
|
139
139
|
*/
|
|
140
140
|
/**
|
|
141
|
-
* @typedef
|
|
141
|
+
* @typedef APIError
|
|
142
|
+
* @property {string} [code]
|
|
142
143
|
* @property {string} [message]
|
|
144
|
+
* @property {string} [info] - Error code description link
|
|
145
|
+
* @property {string} [request_id]
|
|
146
|
+
* @property {string} [error]
|
|
147
|
+
* @property {Object} [meta]
|
|
148
|
+
* @property {boolean} [authenticated]
|
|
143
149
|
*/
|
|
144
150
|
/**
|
|
145
151
|
* @typedef SessionListResponseInfo
|
|
@@ -148,6 +154,7 @@ export = UserPlatformModel;
|
|
|
148
154
|
* @property {string} [ip]
|
|
149
155
|
* @property {string} [domain]
|
|
150
156
|
* @property {string} [expire_in]
|
|
157
|
+
* @property {string} [location]
|
|
151
158
|
*/
|
|
152
159
|
/**
|
|
153
160
|
* @typedef Conditions
|
|
@@ -251,8 +258,9 @@ export = UserPlatformModel;
|
|
|
251
258
|
* @property {string} [desktop_image]
|
|
252
259
|
* @property {number} [delete_account_day]
|
|
253
260
|
* @property {DeleteAccountReasons[]} [delete_account_reasons]
|
|
254
|
-
* @property {
|
|
255
|
-
* @property {
|
|
261
|
+
* @property {DeleteAccountConsent} [delete_account_consent]
|
|
262
|
+
* @property {SessionExpiry} [session_config]
|
|
263
|
+
* @property {number} [__v]
|
|
256
264
|
*/
|
|
257
265
|
/**
|
|
258
266
|
* @typedef LookAndFeel
|
|
@@ -314,7 +322,7 @@ export = UserPlatformModel;
|
|
|
314
322
|
/**
|
|
315
323
|
* @typedef SocialTokens
|
|
316
324
|
* @property {Facebook} [facebook]
|
|
317
|
-
* @property {Accountkit} [
|
|
325
|
+
* @property {Accountkit} [accountkit]
|
|
318
326
|
* @property {Google} [google]
|
|
319
327
|
*/
|
|
320
328
|
/**
|
|
@@ -330,14 +338,17 @@ export = UserPlatformModel;
|
|
|
330
338
|
/**
|
|
331
339
|
* @typedef Facebook
|
|
332
340
|
* @property {string} [app_id]
|
|
341
|
+
* @property {string} [app_secret]
|
|
333
342
|
*/
|
|
334
343
|
/**
|
|
335
344
|
* @typedef Accountkit
|
|
336
345
|
* @property {string} [app_id]
|
|
346
|
+
* @property {string} [app_secret]
|
|
337
347
|
*/
|
|
338
348
|
/**
|
|
339
349
|
* @typedef Google
|
|
340
350
|
* @property {string} [app_id]
|
|
351
|
+
* @property {string} [app_secret]
|
|
341
352
|
*/
|
|
342
353
|
/**
|
|
343
354
|
* @typedef SessionExpiry
|
|
@@ -419,6 +430,28 @@ export = UserPlatformModel;
|
|
|
419
430
|
* @property {string} [updated_at]
|
|
420
431
|
* @property {string} [external_id]
|
|
421
432
|
*/
|
|
433
|
+
/**
|
|
434
|
+
* @typedef UserSearchSchema
|
|
435
|
+
* @property {string} [application_id]
|
|
436
|
+
* @property {string} [user_id]
|
|
437
|
+
* @property {string} [first_name]
|
|
438
|
+
* @property {Object} [meta]
|
|
439
|
+
* @property {string} [last_name]
|
|
440
|
+
* @property {PhoneNumber[]} [phone_numbers]
|
|
441
|
+
* @property {Email[]} [emails]
|
|
442
|
+
* @property {string} [gender]
|
|
443
|
+
* @property {string} [dob]
|
|
444
|
+
* @property {boolean} [active]
|
|
445
|
+
* @property {string} [profile_pic_url]
|
|
446
|
+
* @property {string} [username]
|
|
447
|
+
* @property {string} [account_type]
|
|
448
|
+
* @property {string} [_id]
|
|
449
|
+
* @property {string} [created_at]
|
|
450
|
+
* @property {string} [updated_at]
|
|
451
|
+
* @property {string} [external_id]
|
|
452
|
+
* @property {boolean} [archive]
|
|
453
|
+
* @property {string} [status]
|
|
454
|
+
*/
|
|
422
455
|
/**
|
|
423
456
|
* @typedef PhoneNumber
|
|
424
457
|
* @property {boolean} [active]
|
|
@@ -437,7 +470,7 @@ export = UserPlatformModel;
|
|
|
437
470
|
declare class UserPlatformModel {
|
|
438
471
|
}
|
|
439
472
|
declare namespace UserPlatformModel {
|
|
440
|
-
export { SuccessMessageResponse, UserAttributeDefinition, UserAttributeDefinitionResponse, UserAttributeDefinitionValidation, UserAttributeResponse, CreateUserAttributeRequest, CreateUserAttributeDefinition, BlockUserRequestSchema, ArchiveUserRequestSchema, UnDeleteUserRequestSchema, BlockUserSuccess, ArchiveUserSuccess, UnDeleteUserSuccess, UserSearchResponseSchema, CustomerListResponseSchema, PaginationSchema, SessionListResponseSchema, SessionDeleteResponseSchema, SessionsDeleteResponseSchema,
|
|
473
|
+
export { SuccessMessageResponse, UserAttributeDefinition, UserAttributeDefinitionResponse, UserAttributeDefinitionValidation, UserAttributeResponse, CreateUserAttributeRequest, CreateUserAttributeDefinition, BlockUserRequestSchema, ArchiveUserRequestSchema, UnDeleteUserRequestSchema, BlockUserSuccess, ArchiveUserSuccess, UnDeleteUserSuccess, UserSearchResponseSchema, CustomerListResponseSchema, PaginationSchema, SessionListResponseSchema, SessionDeleteResponseSchema, SessionsDeleteResponseSchema, APIError, SessionListResponseInfo, Conditions, UserResponseErrorSchema, UserGroupResponseSchema, UserGroupListResponseSchema, ConditionsSchema, CreateUserGroup, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, Facebook, Accountkit, Google, SessionExpiry, UpdateUserGroupSchema, PartialUserGroupUpdateSchema, UserGroupUpdateData, UpdateUserRequestSchema, UserEmails, UserPhoneNumbers, UserSchema, UserSearchSchema, PhoneNumber, Email };
|
|
441
474
|
}
|
|
442
475
|
/** @returns {SuccessMessageResponse} */
|
|
443
476
|
declare function SuccessMessageResponse(): SuccessMessageResponse;
|
|
@@ -679,7 +712,7 @@ type UnDeleteUserSuccess = {
|
|
|
679
712
|
/** @returns {UserSearchResponseSchema} */
|
|
680
713
|
declare function UserSearchResponseSchema(): UserSearchResponseSchema;
|
|
681
714
|
type UserSearchResponseSchema = {
|
|
682
|
-
users?:
|
|
715
|
+
users?: UserSearchSchema[];
|
|
683
716
|
};
|
|
684
717
|
/** @returns {CustomerListResponseSchema} */
|
|
685
718
|
declare function CustomerListResponseSchema(): CustomerListResponseSchema;
|
|
@@ -713,10 +746,19 @@ type SessionsDeleteResponseSchema = {
|
|
|
713
746
|
user_id?: string;
|
|
714
747
|
session_ids?: string[];
|
|
715
748
|
};
|
|
716
|
-
/** @returns {
|
|
717
|
-
declare function
|
|
718
|
-
type
|
|
749
|
+
/** @returns {APIError} */
|
|
750
|
+
declare function APIError(): APIError;
|
|
751
|
+
type APIError = {
|
|
752
|
+
code?: string;
|
|
719
753
|
message?: string;
|
|
754
|
+
/**
|
|
755
|
+
* - Error code description link
|
|
756
|
+
*/
|
|
757
|
+
info?: string;
|
|
758
|
+
request_id?: string;
|
|
759
|
+
error?: string;
|
|
760
|
+
meta?: any;
|
|
761
|
+
authenticated?: boolean;
|
|
720
762
|
};
|
|
721
763
|
/** @returns {SessionListResponseInfo} */
|
|
722
764
|
declare function SessionListResponseInfo(): SessionListResponseInfo;
|
|
@@ -726,6 +768,7 @@ type SessionListResponseInfo = {
|
|
|
726
768
|
ip?: string;
|
|
727
769
|
domain?: string;
|
|
728
770
|
expire_in?: string;
|
|
771
|
+
location?: string;
|
|
729
772
|
};
|
|
730
773
|
/** @returns {Conditions} */
|
|
731
774
|
declare function Conditions(): Conditions;
|
|
@@ -840,8 +883,9 @@ type PlatformSchema = {
|
|
|
840
883
|
desktop_image?: string;
|
|
841
884
|
delete_account_day?: number;
|
|
842
885
|
delete_account_reasons?: DeleteAccountReasons[];
|
|
843
|
-
delete_account_consent?:
|
|
844
|
-
session_config?:
|
|
886
|
+
delete_account_consent?: DeleteAccountConsent;
|
|
887
|
+
session_config?: SessionExpiry;
|
|
888
|
+
__v?: number;
|
|
845
889
|
};
|
|
846
890
|
/** @returns {LookAndFeel} */
|
|
847
891
|
declare function LookAndFeel(): LookAndFeel;
|
|
@@ -915,7 +959,7 @@ type FlashCard = {
|
|
|
915
959
|
declare function SocialTokens(): SocialTokens;
|
|
916
960
|
type SocialTokens = {
|
|
917
961
|
facebook?: Facebook;
|
|
918
|
-
|
|
962
|
+
accountkit?: Accountkit;
|
|
919
963
|
google?: Google;
|
|
920
964
|
};
|
|
921
965
|
/** @returns {DeleteAccountReasons} */
|
|
@@ -934,16 +978,19 @@ type DeleteAccountConsent = {
|
|
|
934
978
|
declare function Facebook(): Facebook;
|
|
935
979
|
type Facebook = {
|
|
936
980
|
app_id?: string;
|
|
981
|
+
app_secret?: string;
|
|
937
982
|
};
|
|
938
983
|
/** @returns {Accountkit} */
|
|
939
984
|
declare function Accountkit(): Accountkit;
|
|
940
985
|
type Accountkit = {
|
|
941
986
|
app_id?: string;
|
|
987
|
+
app_secret?: string;
|
|
942
988
|
};
|
|
943
989
|
/** @returns {Google} */
|
|
944
990
|
declare function Google(): Google;
|
|
945
991
|
type Google = {
|
|
946
992
|
app_id?: string;
|
|
993
|
+
app_secret?: string;
|
|
947
994
|
};
|
|
948
995
|
/** @returns {SessionExpiry} */
|
|
949
996
|
declare function SessionExpiry(): SessionExpiry;
|
|
@@ -1051,6 +1098,29 @@ type UserSchema = {
|
|
|
1051
1098
|
updated_at?: string;
|
|
1052
1099
|
external_id?: string;
|
|
1053
1100
|
};
|
|
1101
|
+
/** @returns {UserSearchSchema} */
|
|
1102
|
+
declare function UserSearchSchema(): UserSearchSchema;
|
|
1103
|
+
type UserSearchSchema = {
|
|
1104
|
+
application_id?: string;
|
|
1105
|
+
user_id?: string;
|
|
1106
|
+
first_name?: string;
|
|
1107
|
+
meta?: any;
|
|
1108
|
+
last_name?: string;
|
|
1109
|
+
phone_numbers?: PhoneNumber[];
|
|
1110
|
+
emails?: Email[];
|
|
1111
|
+
gender?: string;
|
|
1112
|
+
dob?: string;
|
|
1113
|
+
active?: boolean;
|
|
1114
|
+
profile_pic_url?: string;
|
|
1115
|
+
username?: string;
|
|
1116
|
+
account_type?: string;
|
|
1117
|
+
_id?: string;
|
|
1118
|
+
created_at?: string;
|
|
1119
|
+
updated_at?: string;
|
|
1120
|
+
external_id?: string;
|
|
1121
|
+
archive?: boolean;
|
|
1122
|
+
status?: string;
|
|
1123
|
+
};
|
|
1054
1124
|
/** @returns {PhoneNumber} */
|
|
1055
1125
|
declare function PhoneNumber(): PhoneNumber;
|
|
1056
1126
|
type PhoneNumber = {
|
|
@@ -122,7 +122,7 @@ const Joi = require("joi");
|
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
124
|
* @typedef UserSearchResponseSchema
|
|
125
|
-
* @property {
|
|
125
|
+
* @property {UserSearchSchema[]} [users]
|
|
126
126
|
*/
|
|
127
127
|
|
|
128
128
|
/**
|
|
@@ -158,8 +158,14 @@ const Joi = require("joi");
|
|
|
158
158
|
*/
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
|
-
* @typedef
|
|
161
|
+
* @typedef APIError
|
|
162
|
+
* @property {string} [code]
|
|
162
163
|
* @property {string} [message]
|
|
164
|
+
* @property {string} [info] - Error code description link
|
|
165
|
+
* @property {string} [request_id]
|
|
166
|
+
* @property {string} [error]
|
|
167
|
+
* @property {Object} [meta]
|
|
168
|
+
* @property {boolean} [authenticated]
|
|
163
169
|
*/
|
|
164
170
|
|
|
165
171
|
/**
|
|
@@ -169,6 +175,7 @@ const Joi = require("joi");
|
|
|
169
175
|
* @property {string} [ip]
|
|
170
176
|
* @property {string} [domain]
|
|
171
177
|
* @property {string} [expire_in]
|
|
178
|
+
* @property {string} [location]
|
|
172
179
|
*/
|
|
173
180
|
|
|
174
181
|
/**
|
|
@@ -283,8 +290,9 @@ const Joi = require("joi");
|
|
|
283
290
|
* @property {string} [desktop_image]
|
|
284
291
|
* @property {number} [delete_account_day]
|
|
285
292
|
* @property {DeleteAccountReasons[]} [delete_account_reasons]
|
|
286
|
-
* @property {
|
|
287
|
-
* @property {
|
|
293
|
+
* @property {DeleteAccountConsent} [delete_account_consent]
|
|
294
|
+
* @property {SessionExpiry} [session_config]
|
|
295
|
+
* @property {number} [__v]
|
|
288
296
|
*/
|
|
289
297
|
|
|
290
298
|
/**
|
|
@@ -358,7 +366,7 @@ const Joi = require("joi");
|
|
|
358
366
|
/**
|
|
359
367
|
* @typedef SocialTokens
|
|
360
368
|
* @property {Facebook} [facebook]
|
|
361
|
-
* @property {Accountkit} [
|
|
369
|
+
* @property {Accountkit} [accountkit]
|
|
362
370
|
* @property {Google} [google]
|
|
363
371
|
*/
|
|
364
372
|
|
|
@@ -377,16 +385,19 @@ const Joi = require("joi");
|
|
|
377
385
|
/**
|
|
378
386
|
* @typedef Facebook
|
|
379
387
|
* @property {string} [app_id]
|
|
388
|
+
* @property {string} [app_secret]
|
|
380
389
|
*/
|
|
381
390
|
|
|
382
391
|
/**
|
|
383
392
|
* @typedef Accountkit
|
|
384
393
|
* @property {string} [app_id]
|
|
394
|
+
* @property {string} [app_secret]
|
|
385
395
|
*/
|
|
386
396
|
|
|
387
397
|
/**
|
|
388
398
|
* @typedef Google
|
|
389
399
|
* @property {string} [app_id]
|
|
400
|
+
* @property {string} [app_secret]
|
|
390
401
|
*/
|
|
391
402
|
|
|
392
403
|
/**
|
|
@@ -477,6 +488,29 @@ const Joi = require("joi");
|
|
|
477
488
|
* @property {string} [external_id]
|
|
478
489
|
*/
|
|
479
490
|
|
|
491
|
+
/**
|
|
492
|
+
* @typedef UserSearchSchema
|
|
493
|
+
* @property {string} [application_id]
|
|
494
|
+
* @property {string} [user_id]
|
|
495
|
+
* @property {string} [first_name]
|
|
496
|
+
* @property {Object} [meta]
|
|
497
|
+
* @property {string} [last_name]
|
|
498
|
+
* @property {PhoneNumber[]} [phone_numbers]
|
|
499
|
+
* @property {Email[]} [emails]
|
|
500
|
+
* @property {string} [gender]
|
|
501
|
+
* @property {string} [dob]
|
|
502
|
+
* @property {boolean} [active]
|
|
503
|
+
* @property {string} [profile_pic_url]
|
|
504
|
+
* @property {string} [username]
|
|
505
|
+
* @property {string} [account_type]
|
|
506
|
+
* @property {string} [_id]
|
|
507
|
+
* @property {string} [created_at]
|
|
508
|
+
* @property {string} [updated_at]
|
|
509
|
+
* @property {string} [external_id]
|
|
510
|
+
* @property {boolean} [archive]
|
|
511
|
+
* @property {string} [status]
|
|
512
|
+
*/
|
|
513
|
+
|
|
480
514
|
/**
|
|
481
515
|
* @typedef PhoneNumber
|
|
482
516
|
* @property {boolean} [active]
|
|
@@ -645,7 +679,7 @@ class UserPlatformModel {
|
|
|
645
679
|
/** @returns {UserSearchResponseSchema} */
|
|
646
680
|
static UserSearchResponseSchema() {
|
|
647
681
|
return Joi.object({
|
|
648
|
-
users: Joi.array().items(UserPlatformModel.
|
|
682
|
+
users: Joi.array().items(UserPlatformModel.UserSearchSchema()),
|
|
649
683
|
});
|
|
650
684
|
}
|
|
651
685
|
|
|
@@ -691,10 +725,16 @@ class UserPlatformModel {
|
|
|
691
725
|
});
|
|
692
726
|
}
|
|
693
727
|
|
|
694
|
-
/** @returns {
|
|
695
|
-
static
|
|
728
|
+
/** @returns {APIError} */
|
|
729
|
+
static APIError() {
|
|
696
730
|
return Joi.object({
|
|
731
|
+
code: Joi.string().allow(""),
|
|
697
732
|
message: Joi.string().allow(""),
|
|
733
|
+
info: Joi.string().allow(""),
|
|
734
|
+
request_id: Joi.string().allow(""),
|
|
735
|
+
error: Joi.string().allow(""),
|
|
736
|
+
meta: Joi.any(),
|
|
737
|
+
authenticated: Joi.boolean(),
|
|
698
738
|
});
|
|
699
739
|
}
|
|
700
740
|
|
|
@@ -706,6 +746,7 @@ class UserPlatformModel {
|
|
|
706
746
|
ip: Joi.string().allow(""),
|
|
707
747
|
domain: Joi.string().allow(""),
|
|
708
748
|
expire_in: Joi.string().allow(""),
|
|
749
|
+
location: Joi.string().allow(""),
|
|
709
750
|
});
|
|
710
751
|
}
|
|
711
752
|
|
|
@@ -812,7 +853,7 @@ class UserPlatformModel {
|
|
|
812
853
|
max_age: Joi.number(),
|
|
813
854
|
secure: Joi.boolean(),
|
|
814
855
|
http_only: Joi.boolean(),
|
|
815
|
-
cookie: Joi.any(),
|
|
856
|
+
cookie: Joi.object().pattern(/\S/, Joi.any()),
|
|
816
857
|
});
|
|
817
858
|
}
|
|
818
859
|
|
|
@@ -844,8 +885,9 @@ class UserPlatformModel {
|
|
|
844
885
|
delete_account_reasons: Joi.array().items(
|
|
845
886
|
UserPlatformModel.DeleteAccountReasons()
|
|
846
887
|
),
|
|
847
|
-
delete_account_consent:
|
|
848
|
-
session_config:
|
|
888
|
+
delete_account_consent: UserPlatformModel.DeleteAccountConsent(),
|
|
889
|
+
session_config: UserPlatformModel.SessionExpiry(),
|
|
890
|
+
__v: Joi.number(),
|
|
849
891
|
});
|
|
850
892
|
}
|
|
851
893
|
|
|
@@ -943,7 +985,7 @@ class UserPlatformModel {
|
|
|
943
985
|
static SocialTokens() {
|
|
944
986
|
return Joi.object({
|
|
945
987
|
facebook: UserPlatformModel.Facebook(),
|
|
946
|
-
|
|
988
|
+
accountkit: UserPlatformModel.Accountkit(),
|
|
947
989
|
google: UserPlatformModel.Google(),
|
|
948
990
|
});
|
|
949
991
|
}
|
|
@@ -968,6 +1010,7 @@ class UserPlatformModel {
|
|
|
968
1010
|
static Facebook() {
|
|
969
1011
|
return Joi.object({
|
|
970
1012
|
app_id: Joi.string().allow(""),
|
|
1013
|
+
app_secret: Joi.string().allow(""),
|
|
971
1014
|
});
|
|
972
1015
|
}
|
|
973
1016
|
|
|
@@ -975,6 +1018,7 @@ class UserPlatformModel {
|
|
|
975
1018
|
static Accountkit() {
|
|
976
1019
|
return Joi.object({
|
|
977
1020
|
app_id: Joi.string().allow(""),
|
|
1021
|
+
app_secret: Joi.string().allow(""),
|
|
978
1022
|
});
|
|
979
1023
|
}
|
|
980
1024
|
|
|
@@ -982,6 +1026,7 @@ class UserPlatformModel {
|
|
|
982
1026
|
static Google() {
|
|
983
1027
|
return Joi.object({
|
|
984
1028
|
app_id: Joi.string().allow(""),
|
|
1029
|
+
app_secret: Joi.string().allow(""),
|
|
985
1030
|
});
|
|
986
1031
|
}
|
|
987
1032
|
|
|
@@ -1083,6 +1128,31 @@ class UserPlatformModel {
|
|
|
1083
1128
|
});
|
|
1084
1129
|
}
|
|
1085
1130
|
|
|
1131
|
+
/** @returns {UserSearchSchema} */
|
|
1132
|
+
static UserSearchSchema() {
|
|
1133
|
+
return Joi.object({
|
|
1134
|
+
application_id: Joi.string().allow(""),
|
|
1135
|
+
user_id: Joi.string().allow(""),
|
|
1136
|
+
first_name: Joi.string().allow(""),
|
|
1137
|
+
meta: Joi.any(),
|
|
1138
|
+
last_name: Joi.string().allow(""),
|
|
1139
|
+
phone_numbers: Joi.array().items(UserPlatformModel.PhoneNumber()),
|
|
1140
|
+
emails: Joi.array().items(UserPlatformModel.Email()),
|
|
1141
|
+
gender: Joi.string().allow(""),
|
|
1142
|
+
dob: Joi.string().allow(""),
|
|
1143
|
+
active: Joi.boolean(),
|
|
1144
|
+
profile_pic_url: Joi.string().allow(""),
|
|
1145
|
+
username: Joi.string().allow(""),
|
|
1146
|
+
account_type: Joi.string().allow(""),
|
|
1147
|
+
_id: Joi.string().allow(""),
|
|
1148
|
+
created_at: Joi.string().allow(""),
|
|
1149
|
+
updated_at: Joi.string().allow(""),
|
|
1150
|
+
external_id: Joi.string().allow(""),
|
|
1151
|
+
archive: Joi.boolean(),
|
|
1152
|
+
status: Joi.string().allow(""),
|
|
1153
|
+
});
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1086
1156
|
/** @returns {PhoneNumber} */
|
|
1087
1157
|
static PhoneNumber() {
|
|
1088
1158
|
return Joi.object({
|