@gofynd/fdk-client-javascript 1.3.3-beta.3 → 1.3.4-beta.1
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/Cart/CartApplicationModel.d.ts +4 -0
- package/sdk/application/Cart/CartApplicationModel.js +4 -0
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +6 -8
- package/sdk/application/Theme/ThemeApplicationModel.js +6 -8
- package/sdk/common/AxiosHelper.js +10 -0
- package/sdk/partner/PartnerConfig.js +3 -5
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4 -0
- package/sdk/platform/Cart/CartPlatformModel.js +4 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +56 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +308 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +38 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +344 -66
- package/sdk/platform/Catalog/CatalogPlatformModel.js +247 -65
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +26 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +152 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +14 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +22 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +24 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4 -4
- package/sdk/platform/Order/OrderPlatformModel.js +4 -4
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -0
- package/sdk/platform/User/UserPlatformApplicationClient.js +79 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -1
- package/sdk/platform/User/UserPlatformApplicationValidator.js +14 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +63 -1
- package/sdk/platform/User/UserPlatformModel.js +44 -0
|
@@ -117,6 +117,20 @@ export = UserPlatformModel;
|
|
|
117
117
|
* @property {number} [size]
|
|
118
118
|
* @property {string} [type]
|
|
119
119
|
*/
|
|
120
|
+
/**
|
|
121
|
+
* @typedef PartialUserGroupUpdateSchema
|
|
122
|
+
* @property {string} [description]
|
|
123
|
+
* @property {string} [file_url] - Required property when passed type file_url.
|
|
124
|
+
* Internet reachable csv file url which will be used to fetch download data.
|
|
125
|
+
* It must have one of columns from `phone_number``, `email`, `user_id` and
|
|
126
|
+
* must have `action` column. `action` column can have `add` or `remove` value.
|
|
127
|
+
* @property {string} [name]
|
|
128
|
+
* @property {string} [type] - Source of update to be used to update individual
|
|
129
|
+
* users. Default value is considered file_url if not passed.
|
|
130
|
+
* @property {UserGroupUpdateData[]} [user_data] - Required property when passed
|
|
131
|
+
* type json. Array of user data. Must have `action` field and one of
|
|
132
|
+
* `phone_number`, `email` or `user_id` field in object
|
|
133
|
+
*/
|
|
120
134
|
/**
|
|
121
135
|
* @typedef PhoneNumber
|
|
122
136
|
* @property {boolean} [active]
|
|
@@ -269,6 +283,13 @@ export = UserPlatformModel;
|
|
|
269
283
|
* @property {string} [status]
|
|
270
284
|
* @property {number} [uid]
|
|
271
285
|
*/
|
|
286
|
+
/**
|
|
287
|
+
* @typedef UserGroupUpdateData
|
|
288
|
+
* @property {string} action
|
|
289
|
+
* @property {string} [email] - Email of registered user
|
|
290
|
+
* @property {string} [phone_number] - Phone number of registered user
|
|
291
|
+
* @property {string} [user_id] - Must be valid mongodb objectid of existing user
|
|
292
|
+
*/
|
|
272
293
|
/**
|
|
273
294
|
* @typedef UserPhoneNumbers
|
|
274
295
|
* @property {boolean} [active]
|
|
@@ -303,7 +324,7 @@ export = UserPlatformModel;
|
|
|
303
324
|
declare class UserPlatformModel {
|
|
304
325
|
}
|
|
305
326
|
declare namespace UserPlatformModel {
|
|
306
|
-
export { Accountkit, ArchiveUserRequestSchema, ArchiveUserSuccess, AuthenticationApiErrorSchema, BlockUserRequestSchema, BlockUserSuccess, CreateUserGroupSchema, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, CustomerListResponseSchema, DeleteAccountConsent, DeleteAccountReasons, Email, Facebook, FlashCard, Google, Login, LookAndFeel, MetaSchema, PaginationSchema, PhoneNumber, PlatformEmail, PlatformMobile, PlatformSchema, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, RequiredFields, SessionDeleteResponseSchema, SessionExpiry, SessionListResponseInfo, SessionListResponseSchema, Social, SocialTokens, UnDeleteUserRequestSchema, UnDeleteUserSuccess, UpdateUserGroupSchema, UpdateUserRequestSchema, UserEmails, UserGroupListResponseSchema, UserGroupResponseSchema, UserPhoneNumbers, UserSchema, UserSearchResponseSchema };
|
|
327
|
+
export { Accountkit, ArchiveUserRequestSchema, ArchiveUserSuccess, AuthenticationApiErrorSchema, BlockUserRequestSchema, BlockUserSuccess, CreateUserGroupSchema, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, CustomerListResponseSchema, DeleteAccountConsent, DeleteAccountReasons, Email, Facebook, FlashCard, Google, Login, LookAndFeel, MetaSchema, PaginationSchema, PartialUserGroupUpdateSchema, PhoneNumber, PlatformEmail, PlatformMobile, PlatformSchema, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, RequiredFields, SessionDeleteResponseSchema, SessionExpiry, SessionListResponseInfo, SessionListResponseSchema, Social, SocialTokens, UnDeleteUserRequestSchema, UnDeleteUserSuccess, UpdateUserGroupSchema, UpdateUserRequestSchema, UserEmails, UserGroupListResponseSchema, UserGroupResponseSchema, UserGroupUpdateData, UserPhoneNumbers, UserSchema, UserSearchResponseSchema };
|
|
307
328
|
}
|
|
308
329
|
/** @returns {Accountkit} */
|
|
309
330
|
declare function Accountkit(): Accountkit;
|
|
@@ -445,6 +466,30 @@ type PaginationSchema = {
|
|
|
445
466
|
size?: number;
|
|
446
467
|
type?: string;
|
|
447
468
|
};
|
|
469
|
+
/** @returns {PartialUserGroupUpdateSchema} */
|
|
470
|
+
declare function PartialUserGroupUpdateSchema(): PartialUserGroupUpdateSchema;
|
|
471
|
+
type PartialUserGroupUpdateSchema = {
|
|
472
|
+
description?: string;
|
|
473
|
+
/**
|
|
474
|
+
* - Required property when passed type file_url.
|
|
475
|
+
* Internet reachable csv file url which will be used to fetch download data.
|
|
476
|
+
* It must have one of columns from `phone_number``, `email`, `user_id` and
|
|
477
|
+
* must have `action` column. `action` column can have `add` or `remove` value.
|
|
478
|
+
*/
|
|
479
|
+
file_url?: string;
|
|
480
|
+
name?: string;
|
|
481
|
+
/**
|
|
482
|
+
* - Source of update to be used to update individual
|
|
483
|
+
* users. Default value is considered file_url if not passed.
|
|
484
|
+
*/
|
|
485
|
+
type?: string;
|
|
486
|
+
/**
|
|
487
|
+
* - Required property when passed
|
|
488
|
+
* type json. Array of user data. Must have `action` field and one of
|
|
489
|
+
* `phone_number`, `email` or `user_id` field in object
|
|
490
|
+
*/
|
|
491
|
+
user_data?: UserGroupUpdateData[];
|
|
492
|
+
};
|
|
448
493
|
/** @returns {PhoneNumber} */
|
|
449
494
|
declare function PhoneNumber(): PhoneNumber;
|
|
450
495
|
type PhoneNumber = {
|
|
@@ -618,6 +663,23 @@ type UserGroupResponseSchema = {
|
|
|
618
663
|
status?: string;
|
|
619
664
|
uid?: number;
|
|
620
665
|
};
|
|
666
|
+
/** @returns {UserGroupUpdateData} */
|
|
667
|
+
declare function UserGroupUpdateData(): UserGroupUpdateData;
|
|
668
|
+
type UserGroupUpdateData = {
|
|
669
|
+
action: string;
|
|
670
|
+
/**
|
|
671
|
+
* - Email of registered user
|
|
672
|
+
*/
|
|
673
|
+
email?: string;
|
|
674
|
+
/**
|
|
675
|
+
* - Phone number of registered user
|
|
676
|
+
*/
|
|
677
|
+
phone_number?: string;
|
|
678
|
+
/**
|
|
679
|
+
* - Must be valid mongodb objectid of existing user
|
|
680
|
+
*/
|
|
681
|
+
user_id?: string;
|
|
682
|
+
};
|
|
621
683
|
/** @returns {UserPhoneNumbers} */
|
|
622
684
|
declare function UserPhoneNumbers(): UserPhoneNumbers;
|
|
623
685
|
type UserPhoneNumbers = {
|
|
@@ -140,6 +140,21 @@ const Joi = require("joi");
|
|
|
140
140
|
* @property {string} [type]
|
|
141
141
|
*/
|
|
142
142
|
|
|
143
|
+
/**
|
|
144
|
+
* @typedef PartialUserGroupUpdateSchema
|
|
145
|
+
* @property {string} [description]
|
|
146
|
+
* @property {string} [file_url] - Required property when passed type file_url.
|
|
147
|
+
* Internet reachable csv file url which will be used to fetch download data.
|
|
148
|
+
* It must have one of columns from `phone_number``, `email`, `user_id` and
|
|
149
|
+
* must have `action` column. `action` column can have `add` or `remove` value.
|
|
150
|
+
* @property {string} [name]
|
|
151
|
+
* @property {string} [type] - Source of update to be used to update individual
|
|
152
|
+
* users. Default value is considered file_url if not passed.
|
|
153
|
+
* @property {UserGroupUpdateData[]} [user_data] - Required property when passed
|
|
154
|
+
* type json. Array of user data. Must have `action` field and one of
|
|
155
|
+
* `phone_number`, `email` or `user_id` field in object
|
|
156
|
+
*/
|
|
157
|
+
|
|
143
158
|
/**
|
|
144
159
|
* @typedef PhoneNumber
|
|
145
160
|
* @property {boolean} [active]
|
|
@@ -313,6 +328,14 @@ const Joi = require("joi");
|
|
|
313
328
|
* @property {number} [uid]
|
|
314
329
|
*/
|
|
315
330
|
|
|
331
|
+
/**
|
|
332
|
+
* @typedef UserGroupUpdateData
|
|
333
|
+
* @property {string} action
|
|
334
|
+
* @property {string} [email] - Email of registered user
|
|
335
|
+
* @property {string} [phone_number] - Phone number of registered user
|
|
336
|
+
* @property {string} [user_id] - Must be valid mongodb objectid of existing user
|
|
337
|
+
*/
|
|
338
|
+
|
|
316
339
|
/**
|
|
317
340
|
* @typedef UserPhoneNumbers
|
|
318
341
|
* @property {boolean} [active]
|
|
@@ -532,6 +555,17 @@ class UserPlatformModel {
|
|
|
532
555
|
});
|
|
533
556
|
}
|
|
534
557
|
|
|
558
|
+
/** @returns {PartialUserGroupUpdateSchema} */
|
|
559
|
+
static PartialUserGroupUpdateSchema() {
|
|
560
|
+
return Joi.object({
|
|
561
|
+
description: Joi.string().allow(""),
|
|
562
|
+
file_url: Joi.string().allow(""),
|
|
563
|
+
name: Joi.string().allow(""),
|
|
564
|
+
type: Joi.string().allow(""),
|
|
565
|
+
user_data: Joi.array().items(UserPlatformModel.UserGroupUpdateData()),
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
|
|
535
569
|
/** @returns {PhoneNumber} */
|
|
536
570
|
static PhoneNumber() {
|
|
537
571
|
return Joi.object({
|
|
@@ -749,6 +783,16 @@ class UserPlatformModel {
|
|
|
749
783
|
});
|
|
750
784
|
}
|
|
751
785
|
|
|
786
|
+
/** @returns {UserGroupUpdateData} */
|
|
787
|
+
static UserGroupUpdateData() {
|
|
788
|
+
return Joi.object({
|
|
789
|
+
action: Joi.string().allow("").required(),
|
|
790
|
+
email: Joi.string().allow(""),
|
|
791
|
+
phone_number: Joi.string().allow(""),
|
|
792
|
+
user_id: Joi.string().allow(""),
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
|
|
752
796
|
/** @returns {UserPhoneNumbers} */
|
|
753
797
|
static UserPhoneNumbers() {
|
|
754
798
|
return Joi.object({
|