@gofynd/fdk-client-javascript 3.0.0-beta.1 → 3.1.0-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/CartApplicationClient.d.ts +14 -14
- package/sdk/application/Cart/CartApplicationClient.js +14 -14
- package/sdk/application/Content/ContentApplicationClient.d.ts +10 -0
- package/sdk/application/Content/ContentApplicationClient.js +53 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +136 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -12
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +46 -33
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +41 -25
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +6 -397
- package/sdk/platform/Billing/BillingPlatformClient.js +77 -3215
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +417 -3811
- package/sdk/platform/Billing/BillingPlatformModel.js +292 -2544
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +12 -451
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -483
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +34 -34
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +34 -34
- package/sdk/platform/Cart/CartPlatformModel.d.ts +363 -29
- package/sdk/platform/Cart/CartPlatformModel.js +203 -31
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +57 -57
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +220 -200
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +121 -91
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +58 -46
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +10 -51
- package/sdk/platform/Catalog/CatalogPlatformClient.js +79 -400
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +22 -228
- package/sdk/platform/Catalog/CatalogPlatformModel.js +12 -163
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +15 -61
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -65
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +4 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +10 -14
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +94 -30
- package/sdk/platform/Communication/CommunicationPlatformModel.js +110 -32
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +33 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +62 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +11 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +5 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +12 -2
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +12 -10
- package/sdk/platform/Content/ContentPlatformModel.d.ts +42 -12
- package/sdk/platform/Content/ContentPlatformModel.js +43 -13
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
- package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
- package/sdk/platform/Order/OrderPlatformClient.d.ts +21 -21
- package/sdk/platform/Order/OrderPlatformClient.js +21 -21
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1010 -80
- package/sdk/platform/Order/OrderPlatformModel.js +665 -70
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +31 -4
- package/sdk/platform/Payment/PaymentPlatformModel.js +11 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +8 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +14 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +6 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +24 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +119 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +194 -23
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +116 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +23 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +16 -0
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -0
- package/sdk/platform/Share/SharePlatformModel.js +2 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +10 -12
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +45 -49
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +10 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +12 -12
- package/sdk/public/PublicClient.d.ts +0 -2
- package/sdk/public/PublicClient.js +0 -4
- package/sdk/public/index.d.ts +0 -1
- package/sdk/public/index.js +0 -2
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -56
- package/sdk/public/Billing/BillingPublicClient.js +0 -397
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -919
- package/sdk/public/Billing/BillingPublicModel.js +0 -560
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -43
- package/sdk/public/Billing/BillingPublicValidator.js +0 -50
|
@@ -229,8 +229,8 @@ export = CommunicationPlatformModel;
|
|
|
229
229
|
/**
|
|
230
230
|
* @typedef Stats
|
|
231
231
|
* @property {string} [_id]
|
|
232
|
-
* @property {
|
|
233
|
-
* @property {
|
|
232
|
+
* @property {StatsImported} [imported]
|
|
233
|
+
* @property {StatsProcessed} [processed]
|
|
234
234
|
*/
|
|
235
235
|
/**
|
|
236
236
|
* @typedef GetStats
|
|
@@ -510,12 +510,12 @@ export = CommunicationPlatformModel;
|
|
|
510
510
|
/**
|
|
511
511
|
* @typedef EventSubscriptionTemplateSms
|
|
512
512
|
* @property {boolean} [subscribed]
|
|
513
|
-
* @property {
|
|
513
|
+
* @property {string} [template]
|
|
514
514
|
*/
|
|
515
515
|
/**
|
|
516
516
|
* @typedef EventSubscriptionTemplateEmail
|
|
517
517
|
* @property {boolean} [subscribed]
|
|
518
|
-
* @property {
|
|
518
|
+
* @property {string} [template]
|
|
519
519
|
*/
|
|
520
520
|
/**
|
|
521
521
|
* @typedef EventSubscriptionTemplatePushnotification
|
|
@@ -540,9 +540,38 @@ export = CommunicationPlatformModel;
|
|
|
540
540
|
* @property {string} [updated_at]
|
|
541
541
|
* @property {number} [__v]
|
|
542
542
|
*/
|
|
543
|
+
/**
|
|
544
|
+
* @typedef EventSubscriptionTemplateSmsObj
|
|
545
|
+
* @property {boolean} [subscribed]
|
|
546
|
+
* @property {Object} [template]
|
|
547
|
+
*/
|
|
548
|
+
/**
|
|
549
|
+
* @typedef EventSubscriptionTemplateEmailObj
|
|
550
|
+
* @property {boolean} [subscribed]
|
|
551
|
+
* @property {string} [template]
|
|
552
|
+
*/
|
|
553
|
+
/**
|
|
554
|
+
* @typedef EventSubscriptionTemplateObj
|
|
555
|
+
* @property {EventSubscriptionTemplateSmsObj} [sms]
|
|
556
|
+
* @property {EventSubscriptionTemplateEmailObj} [email]
|
|
557
|
+
* @property {EventSubscriptionTemplatePushnotification} [pushnotification]
|
|
558
|
+
*/
|
|
559
|
+
/**
|
|
560
|
+
* @typedef EventSubscriptionObj
|
|
561
|
+
* @property {EventSubscriptionTemplateObj} [template]
|
|
562
|
+
* @property {boolean} [is_default]
|
|
563
|
+
* @property {string} [_id]
|
|
564
|
+
* @property {string} [application]
|
|
565
|
+
* @property {string} [category]
|
|
566
|
+
* @property {Object} [event]
|
|
567
|
+
* @property {string} [slug]
|
|
568
|
+
* @property {string} [created_at]
|
|
569
|
+
* @property {string} [updated_at]
|
|
570
|
+
* @property {number} [__v]
|
|
571
|
+
*/
|
|
543
572
|
/**
|
|
544
573
|
* @typedef EventSubscriptions
|
|
545
|
-
* @property {
|
|
574
|
+
* @property {EventSubscriptionObj[]} [items]
|
|
546
575
|
* @property {Page} [page]
|
|
547
576
|
*/
|
|
548
577
|
/**
|
|
@@ -603,8 +632,8 @@ export = CommunicationPlatformModel;
|
|
|
603
632
|
*/
|
|
604
633
|
/**
|
|
605
634
|
* @typedef JobLog
|
|
606
|
-
* @property {
|
|
607
|
-
* @property {
|
|
635
|
+
* @property {StatsImported} [imported]
|
|
636
|
+
* @property {StatsProcessed} [processed]
|
|
608
637
|
* @property {string} [_id]
|
|
609
638
|
* @property {string} [job]
|
|
610
639
|
* @property {string} [campaign]
|
|
@@ -666,11 +695,6 @@ export = CommunicationPlatformModel;
|
|
|
666
695
|
* @property {Log[]} [items]
|
|
667
696
|
* @property {Page} [page]
|
|
668
697
|
*/
|
|
669
|
-
/**
|
|
670
|
-
* @typedef SendOtpSmsCommsTemplate
|
|
671
|
-
* @property {string} [key]
|
|
672
|
-
* @property {Object} [value]
|
|
673
|
-
*/
|
|
674
698
|
/**
|
|
675
699
|
* @typedef SendOtpSmsCommsProvider
|
|
676
700
|
* @property {string} [slug]
|
|
@@ -697,7 +721,7 @@ export = CommunicationPlatformModel;
|
|
|
697
721
|
* @typedef SendOtpCommsReqSms
|
|
698
722
|
* @property {number} [otp_length]
|
|
699
723
|
* @property {number} [expiry]
|
|
700
|
-
* @property {
|
|
724
|
+
* @property {Object} [template]
|
|
701
725
|
* @property {SendOtpSmsCommsProvider} [provider]
|
|
702
726
|
*/
|
|
703
727
|
/**
|
|
@@ -877,6 +901,12 @@ export = CommunicationPlatformModel;
|
|
|
877
901
|
* @property {string} [deeplink]
|
|
878
902
|
* @property {string} [click_action]
|
|
879
903
|
*/
|
|
904
|
+
/**
|
|
905
|
+
* @typedef SystemNotificationSetting
|
|
906
|
+
* @property {boolean} [sound]
|
|
907
|
+
* @property {string} [priority]
|
|
908
|
+
* @property {string} [time_to_live]
|
|
909
|
+
*/
|
|
880
910
|
/**
|
|
881
911
|
* @typedef SystemNotificationUser
|
|
882
912
|
* @property {string} [type]
|
|
@@ -886,7 +916,7 @@ export = CommunicationPlatformModel;
|
|
|
886
916
|
* @typedef SystemNotification
|
|
887
917
|
* @property {Notification} [notification]
|
|
888
918
|
* @property {SystemNotificationUser} [user]
|
|
889
|
-
* @property {
|
|
919
|
+
* @property {SystemNotificationSetting} [settings]
|
|
890
920
|
* @property {string} [_id]
|
|
891
921
|
* @property {string} [group]
|
|
892
922
|
* @property {string} [created_at]
|
|
@@ -944,7 +974,7 @@ export = CommunicationPlatformModel;
|
|
|
944
974
|
declare class CommunicationPlatformModel {
|
|
945
975
|
}
|
|
946
976
|
declare namespace CommunicationPlatformModel {
|
|
947
|
-
export { AppProvidersGlobalProviderRequestObjProvider, AppProvidersGlobalProviderRequestObj, AppProvidersGlobalProviderRequest, UpdateAppProvidersGlobalProviderResponseEmailSmsObj, UpdateAppProvidersGlobalProviderResponse, DefaultEmailProvidersFromAddresses, DefaultEmailProviders, PushtokenReq, PushtokenRes, SendInstantResponse, MetaStructure, PayloadSmsTemplateStructure, PayloadSmsProviderStructure, PayloadEmailTemplateStructure, PayloadEmailProviderStructure, PayloadEmailStructure, PayloadSmsStructure, SendSyncData, SendSyncRequest, EngineRequest, EngineResponse, EventSubscriptionsBulkUpdateRequest, EventSubscriptionsBulkUpdateResponse, SubscriptionsObjectRequest, SubscriptionsObject, TemplateObject, CommunicationTemplate, AppProvider, AppProviderRes, AppProviderResVoice, AppProviderResObj, GlobalProviders, GlobalProvidersResObj, AppProviderReq, StatsImported, StatsProcessedEmail, StatsProcessedSms, StatsProcessed, Stats, GetStats, CampaignReq, RecipientHeaders, CampaignEmailTemplate, CampignEmailProvider, CampaignEmail, Campaign, Campaigns, AudienceReq, Audience, Audiences, GetNRecordsCsvReq, GetNRecordsCsvResItems, GetNRecordsCsvRes, DummyDatasources, DummyDatasourcesMeta, DummyDatasourcesMetaObj, EmailProviderReqFrom, EmailProviderReq, EmailProvider, EmailProviders, EmailTemplateKeys, EmailTemplateHeaders, EmailTemplateReq, TemplateAndType, TemplateKeys, EmailTemplate, SystemEmailTemplate, EmailTemplates, SubscribedSmsTemplates, SubscribedEmailTemplates, EventSubscriptionTemplateSms, EventSubscriptionTemplateEmail, EventSubscriptionTemplatePushnotification, EventSubscriptionTemplate, EventSubscription, EventSubscriptions, TriggerJobResponse, TriggerJobRequest, GlobalVariablesGetResponse, GlobalVariablesPostResponse, GlobalVariablesReq, Job, Jobs, CreateJobsRes, CreateJobsReq, JobLog, JobLogs, LogEmail, LogSms, LogPushnotification, LogMeta, Log, Logs,
|
|
977
|
+
export { AppProvidersGlobalProviderRequestObjProvider, AppProvidersGlobalProviderRequestObj, AppProvidersGlobalProviderRequest, UpdateAppProvidersGlobalProviderResponseEmailSmsObj, UpdateAppProvidersGlobalProviderResponse, DefaultEmailProvidersFromAddresses, DefaultEmailProviders, PushtokenReq, PushtokenRes, SendInstantResponse, MetaStructure, PayloadSmsTemplateStructure, PayloadSmsProviderStructure, PayloadEmailTemplateStructure, PayloadEmailProviderStructure, PayloadEmailStructure, PayloadSmsStructure, SendSyncData, SendSyncRequest, EngineRequest, EngineResponse, EventSubscriptionsBulkUpdateRequest, EventSubscriptionsBulkUpdateResponse, SubscriptionsObjectRequest, SubscriptionsObject, TemplateObject, CommunicationTemplate, AppProvider, AppProviderRes, AppProviderResVoice, AppProviderResObj, GlobalProviders, GlobalProvidersResObj, AppProviderReq, StatsImported, StatsProcessedEmail, StatsProcessedSms, StatsProcessed, Stats, GetStats, CampaignReq, RecipientHeaders, CampaignEmailTemplate, CampignEmailProvider, CampaignEmail, Campaign, Campaigns, AudienceReq, Audience, Audiences, GetNRecordsCsvReq, GetNRecordsCsvResItems, GetNRecordsCsvRes, DummyDatasources, DummyDatasourcesMeta, DummyDatasourcesMetaObj, EmailProviderReqFrom, EmailProviderReq, EmailProvider, EmailProviders, EmailTemplateKeys, EmailTemplateHeaders, EmailTemplateReq, TemplateAndType, TemplateKeys, EmailTemplate, SystemEmailTemplate, EmailTemplates, SubscribedSmsTemplates, SubscribedEmailTemplates, EventSubscriptionTemplateSms, EventSubscriptionTemplateEmail, EventSubscriptionTemplatePushnotification, EventSubscriptionTemplate, EventSubscription, EventSubscriptionTemplateSmsObj, EventSubscriptionTemplateEmailObj, EventSubscriptionTemplateObj, EventSubscriptionObj, EventSubscriptions, TriggerJobResponse, TriggerJobRequest, GlobalVariablesGetResponse, GlobalVariablesPostResponse, GlobalVariablesReq, Job, Jobs, CreateJobsRes, CreateJobsReq, JobLog, JobLogs, LogEmail, LogSms, LogPushnotification, LogMeta, Log, Logs, SendOtpSmsCommsProvider, SendOtpEmailCommsProvider, SendOtpEmailCommsTemplate, SendOtpCommsReqData, SendOtpCommsReqSms, SendOtpCommsReqEmail, SendOtpCommsResSms, SendOtpCommsResEmail, SendOtpCommsReq, SendOtpCommsRes, VerifyOtpCommsReq, VerifyOtpCommsSuccessRes, SmsProviderReq, SmsProvider, SmsProviders, DefaultSmsProviders, SmsTemplateMessage, SmsTemplates, SmsTemplate, SystemSmsTemplates, metaObj, SmsTemplateReq, Notification, SystemNotificationSetting, SystemNotificationUser, SystemNotification, SystemNotifications, Page, BasicDelete, EnabledObj, OtpConfigurationExpiryDuration, OtpConfigurationExpiry, OtpConfigRateLimit, OtpConfiguration };
|
|
948
978
|
}
|
|
949
979
|
/** @returns {AppProvidersGlobalProviderRequestObjProvider} */
|
|
950
980
|
declare function AppProvidersGlobalProviderRequestObjProvider(): AppProvidersGlobalProviderRequestObjProvider;
|
|
@@ -1224,8 +1254,8 @@ type StatsProcessed = {
|
|
|
1224
1254
|
declare function Stats(): Stats;
|
|
1225
1255
|
type Stats = {
|
|
1226
1256
|
_id?: string;
|
|
1227
|
-
imported?:
|
|
1228
|
-
processed?:
|
|
1257
|
+
imported?: StatsImported;
|
|
1258
|
+
processed?: StatsProcessed;
|
|
1229
1259
|
};
|
|
1230
1260
|
/** @returns {GetStats} */
|
|
1231
1261
|
declare function GetStats(): GetStats;
|
|
@@ -1537,13 +1567,13 @@ type SubscribedEmailTemplates = {
|
|
|
1537
1567
|
declare function EventSubscriptionTemplateSms(): EventSubscriptionTemplateSms;
|
|
1538
1568
|
type EventSubscriptionTemplateSms = {
|
|
1539
1569
|
subscribed?: boolean;
|
|
1540
|
-
template?:
|
|
1570
|
+
template?: string;
|
|
1541
1571
|
};
|
|
1542
1572
|
/** @returns {EventSubscriptionTemplateEmail} */
|
|
1543
1573
|
declare function EventSubscriptionTemplateEmail(): EventSubscriptionTemplateEmail;
|
|
1544
1574
|
type EventSubscriptionTemplateEmail = {
|
|
1545
1575
|
subscribed?: boolean;
|
|
1546
|
-
template?:
|
|
1576
|
+
template?: string;
|
|
1547
1577
|
};
|
|
1548
1578
|
/** @returns {EventSubscriptionTemplatePushnotification} */
|
|
1549
1579
|
declare function EventSubscriptionTemplatePushnotification(): EventSubscriptionTemplatePushnotification;
|
|
@@ -1571,10 +1601,43 @@ type EventSubscription = {
|
|
|
1571
1601
|
updated_at?: string;
|
|
1572
1602
|
__v?: number;
|
|
1573
1603
|
};
|
|
1604
|
+
/** @returns {EventSubscriptionTemplateSmsObj} */
|
|
1605
|
+
declare function EventSubscriptionTemplateSmsObj(): EventSubscriptionTemplateSmsObj;
|
|
1606
|
+
type EventSubscriptionTemplateSmsObj = {
|
|
1607
|
+
subscribed?: boolean;
|
|
1608
|
+
template?: any;
|
|
1609
|
+
};
|
|
1610
|
+
/** @returns {EventSubscriptionTemplateEmailObj} */
|
|
1611
|
+
declare function EventSubscriptionTemplateEmailObj(): EventSubscriptionTemplateEmailObj;
|
|
1612
|
+
type EventSubscriptionTemplateEmailObj = {
|
|
1613
|
+
subscribed?: boolean;
|
|
1614
|
+
template?: string;
|
|
1615
|
+
};
|
|
1616
|
+
/** @returns {EventSubscriptionTemplateObj} */
|
|
1617
|
+
declare function EventSubscriptionTemplateObj(): EventSubscriptionTemplateObj;
|
|
1618
|
+
type EventSubscriptionTemplateObj = {
|
|
1619
|
+
sms?: EventSubscriptionTemplateSmsObj;
|
|
1620
|
+
email?: EventSubscriptionTemplateEmailObj;
|
|
1621
|
+
pushnotification?: EventSubscriptionTemplatePushnotification;
|
|
1622
|
+
};
|
|
1623
|
+
/** @returns {EventSubscriptionObj} */
|
|
1624
|
+
declare function EventSubscriptionObj(): EventSubscriptionObj;
|
|
1625
|
+
type EventSubscriptionObj = {
|
|
1626
|
+
template?: EventSubscriptionTemplateObj;
|
|
1627
|
+
is_default?: boolean;
|
|
1628
|
+
_id?: string;
|
|
1629
|
+
application?: string;
|
|
1630
|
+
category?: string;
|
|
1631
|
+
event?: any;
|
|
1632
|
+
slug?: string;
|
|
1633
|
+
created_at?: string;
|
|
1634
|
+
updated_at?: string;
|
|
1635
|
+
__v?: number;
|
|
1636
|
+
};
|
|
1574
1637
|
/** @returns {EventSubscriptions} */
|
|
1575
1638
|
declare function EventSubscriptions(): EventSubscriptions;
|
|
1576
1639
|
type EventSubscriptions = {
|
|
1577
|
-
items?:
|
|
1640
|
+
items?: EventSubscriptionObj[];
|
|
1578
1641
|
page?: Page;
|
|
1579
1642
|
};
|
|
1580
1643
|
/** @returns {TriggerJobResponse} */
|
|
@@ -1645,8 +1708,8 @@ type CreateJobsReq = {
|
|
|
1645
1708
|
/** @returns {JobLog} */
|
|
1646
1709
|
declare function JobLog(): JobLog;
|
|
1647
1710
|
type JobLog = {
|
|
1648
|
-
imported?:
|
|
1649
|
-
processed?:
|
|
1711
|
+
imported?: StatsImported;
|
|
1712
|
+
processed?: StatsProcessed;
|
|
1650
1713
|
_id?: string;
|
|
1651
1714
|
job?: string;
|
|
1652
1715
|
campaign?: string;
|
|
@@ -1715,12 +1778,6 @@ type Logs = {
|
|
|
1715
1778
|
items?: Log[];
|
|
1716
1779
|
page?: Page;
|
|
1717
1780
|
};
|
|
1718
|
-
/** @returns {SendOtpSmsCommsTemplate} */
|
|
1719
|
-
declare function SendOtpSmsCommsTemplate(): SendOtpSmsCommsTemplate;
|
|
1720
|
-
type SendOtpSmsCommsTemplate = {
|
|
1721
|
-
key?: string;
|
|
1722
|
-
value?: any;
|
|
1723
|
-
};
|
|
1724
1781
|
/** @returns {SendOtpSmsCommsProvider} */
|
|
1725
1782
|
declare function SendOtpSmsCommsProvider(): SendOtpSmsCommsProvider;
|
|
1726
1783
|
type SendOtpSmsCommsProvider = {
|
|
@@ -1752,7 +1809,7 @@ declare function SendOtpCommsReqSms(): SendOtpCommsReqSms;
|
|
|
1752
1809
|
type SendOtpCommsReqSms = {
|
|
1753
1810
|
otp_length?: number;
|
|
1754
1811
|
expiry?: number;
|
|
1755
|
-
template?:
|
|
1812
|
+
template?: any;
|
|
1756
1813
|
provider?: SendOtpSmsCommsProvider;
|
|
1757
1814
|
};
|
|
1758
1815
|
/** @returns {SendOtpCommsReqEmail} */
|
|
@@ -1986,6 +2043,13 @@ type Notification = {
|
|
|
1986
2043
|
deeplink?: string;
|
|
1987
2044
|
click_action?: string;
|
|
1988
2045
|
};
|
|
2046
|
+
/** @returns {SystemNotificationSetting} */
|
|
2047
|
+
declare function SystemNotificationSetting(): SystemNotificationSetting;
|
|
2048
|
+
type SystemNotificationSetting = {
|
|
2049
|
+
sound?: boolean;
|
|
2050
|
+
priority?: string;
|
|
2051
|
+
time_to_live?: string;
|
|
2052
|
+
};
|
|
1989
2053
|
/** @returns {SystemNotificationUser} */
|
|
1990
2054
|
declare function SystemNotificationUser(): SystemNotificationUser;
|
|
1991
2055
|
type SystemNotificationUser = {
|
|
@@ -1997,7 +2061,7 @@ declare function SystemNotification(): SystemNotification;
|
|
|
1997
2061
|
type SystemNotification = {
|
|
1998
2062
|
notification?: Notification;
|
|
1999
2063
|
user?: SystemNotificationUser;
|
|
2000
|
-
settings?:
|
|
2064
|
+
settings?: SystemNotificationSetting;
|
|
2001
2065
|
_id?: string;
|
|
2002
2066
|
group?: string;
|
|
2003
2067
|
created_at?: string;
|
|
@@ -268,8 +268,8 @@ const Joi = require("joi");
|
|
|
268
268
|
/**
|
|
269
269
|
* @typedef Stats
|
|
270
270
|
* @property {string} [_id]
|
|
271
|
-
* @property {
|
|
272
|
-
* @property {
|
|
271
|
+
* @property {StatsImported} [imported]
|
|
272
|
+
* @property {StatsProcessed} [processed]
|
|
273
273
|
*/
|
|
274
274
|
|
|
275
275
|
/**
|
|
@@ -581,13 +581,13 @@ const Joi = require("joi");
|
|
|
581
581
|
/**
|
|
582
582
|
* @typedef EventSubscriptionTemplateSms
|
|
583
583
|
* @property {boolean} [subscribed]
|
|
584
|
-
* @property {
|
|
584
|
+
* @property {string} [template]
|
|
585
585
|
*/
|
|
586
586
|
|
|
587
587
|
/**
|
|
588
588
|
* @typedef EventSubscriptionTemplateEmail
|
|
589
589
|
* @property {boolean} [subscribed]
|
|
590
|
-
* @property {
|
|
590
|
+
* @property {string} [template]
|
|
591
591
|
*/
|
|
592
592
|
|
|
593
593
|
/**
|
|
@@ -616,9 +616,42 @@ const Joi = require("joi");
|
|
|
616
616
|
* @property {number} [__v]
|
|
617
617
|
*/
|
|
618
618
|
|
|
619
|
+
/**
|
|
620
|
+
* @typedef EventSubscriptionTemplateSmsObj
|
|
621
|
+
* @property {boolean} [subscribed]
|
|
622
|
+
* @property {Object} [template]
|
|
623
|
+
*/
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* @typedef EventSubscriptionTemplateEmailObj
|
|
627
|
+
* @property {boolean} [subscribed]
|
|
628
|
+
* @property {string} [template]
|
|
629
|
+
*/
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* @typedef EventSubscriptionTemplateObj
|
|
633
|
+
* @property {EventSubscriptionTemplateSmsObj} [sms]
|
|
634
|
+
* @property {EventSubscriptionTemplateEmailObj} [email]
|
|
635
|
+
* @property {EventSubscriptionTemplatePushnotification} [pushnotification]
|
|
636
|
+
*/
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* @typedef EventSubscriptionObj
|
|
640
|
+
* @property {EventSubscriptionTemplateObj} [template]
|
|
641
|
+
* @property {boolean} [is_default]
|
|
642
|
+
* @property {string} [_id]
|
|
643
|
+
* @property {string} [application]
|
|
644
|
+
* @property {string} [category]
|
|
645
|
+
* @property {Object} [event]
|
|
646
|
+
* @property {string} [slug]
|
|
647
|
+
* @property {string} [created_at]
|
|
648
|
+
* @property {string} [updated_at]
|
|
649
|
+
* @property {number} [__v]
|
|
650
|
+
*/
|
|
651
|
+
|
|
619
652
|
/**
|
|
620
653
|
* @typedef EventSubscriptions
|
|
621
|
-
* @property {
|
|
654
|
+
* @property {EventSubscriptionObj[]} [items]
|
|
622
655
|
* @property {Page} [page]
|
|
623
656
|
*/
|
|
624
657
|
|
|
@@ -689,8 +722,8 @@ const Joi = require("joi");
|
|
|
689
722
|
|
|
690
723
|
/**
|
|
691
724
|
* @typedef JobLog
|
|
692
|
-
* @property {
|
|
693
|
-
* @property {
|
|
725
|
+
* @property {StatsImported} [imported]
|
|
726
|
+
* @property {StatsProcessed} [processed]
|
|
694
727
|
* @property {string} [_id]
|
|
695
728
|
* @property {string} [job]
|
|
696
729
|
* @property {string} [campaign]
|
|
@@ -760,12 +793,6 @@ const Joi = require("joi");
|
|
|
760
793
|
* @property {Page} [page]
|
|
761
794
|
*/
|
|
762
795
|
|
|
763
|
-
/**
|
|
764
|
-
* @typedef SendOtpSmsCommsTemplate
|
|
765
|
-
* @property {string} [key]
|
|
766
|
-
* @property {Object} [value]
|
|
767
|
-
*/
|
|
768
|
-
|
|
769
796
|
/**
|
|
770
797
|
* @typedef SendOtpSmsCommsProvider
|
|
771
798
|
* @property {string} [slug]
|
|
@@ -796,7 +823,7 @@ const Joi = require("joi");
|
|
|
796
823
|
* @typedef SendOtpCommsReqSms
|
|
797
824
|
* @property {number} [otp_length]
|
|
798
825
|
* @property {number} [expiry]
|
|
799
|
-
* @property {
|
|
826
|
+
* @property {Object} [template]
|
|
800
827
|
* @property {SendOtpSmsCommsProvider} [provider]
|
|
801
828
|
*/
|
|
802
829
|
|
|
@@ -995,6 +1022,13 @@ const Joi = require("joi");
|
|
|
995
1022
|
* @property {string} [click_action]
|
|
996
1023
|
*/
|
|
997
1024
|
|
|
1025
|
+
/**
|
|
1026
|
+
* @typedef SystemNotificationSetting
|
|
1027
|
+
* @property {boolean} [sound]
|
|
1028
|
+
* @property {string} [priority]
|
|
1029
|
+
* @property {string} [time_to_live]
|
|
1030
|
+
*/
|
|
1031
|
+
|
|
998
1032
|
/**
|
|
999
1033
|
* @typedef SystemNotificationUser
|
|
1000
1034
|
* @property {string} [type]
|
|
@@ -1005,7 +1039,7 @@ const Joi = require("joi");
|
|
|
1005
1039
|
* @typedef SystemNotification
|
|
1006
1040
|
* @property {Notification} [notification]
|
|
1007
1041
|
* @property {SystemNotificationUser} [user]
|
|
1008
|
-
* @property {
|
|
1042
|
+
* @property {SystemNotificationSetting} [settings]
|
|
1009
1043
|
* @property {string} [_id]
|
|
1010
1044
|
* @property {string} [group]
|
|
1011
1045
|
* @property {string} [created_at]
|
|
@@ -1425,8 +1459,8 @@ class CommunicationPlatformModel {
|
|
|
1425
1459
|
static Stats() {
|
|
1426
1460
|
return Joi.object({
|
|
1427
1461
|
_id: Joi.string().allow(""),
|
|
1428
|
-
imported:
|
|
1429
|
-
processed:
|
|
1462
|
+
imported: CommunicationPlatformModel.StatsImported(),
|
|
1463
|
+
processed: CommunicationPlatformModel.StatsProcessed(),
|
|
1430
1464
|
});
|
|
1431
1465
|
}
|
|
1432
1466
|
|
|
@@ -1814,7 +1848,7 @@ class CommunicationPlatformModel {
|
|
|
1814
1848
|
static EventSubscriptionTemplateSms() {
|
|
1815
1849
|
return Joi.object({
|
|
1816
1850
|
subscribed: Joi.boolean(),
|
|
1817
|
-
template: Joi.
|
|
1851
|
+
template: Joi.string().allow("").allow(null),
|
|
1818
1852
|
});
|
|
1819
1853
|
}
|
|
1820
1854
|
|
|
@@ -1822,7 +1856,7 @@ class CommunicationPlatformModel {
|
|
|
1822
1856
|
static EventSubscriptionTemplateEmail() {
|
|
1823
1857
|
return Joi.object({
|
|
1824
1858
|
subscribed: Joi.boolean(),
|
|
1825
|
-
template: Joi.
|
|
1859
|
+
template: Joi.string().allow("").allow(null),
|
|
1826
1860
|
});
|
|
1827
1861
|
}
|
|
1828
1862
|
|
|
@@ -1858,10 +1892,53 @@ class CommunicationPlatformModel {
|
|
|
1858
1892
|
});
|
|
1859
1893
|
}
|
|
1860
1894
|
|
|
1895
|
+
/** @returns {EventSubscriptionTemplateSmsObj} */
|
|
1896
|
+
static EventSubscriptionTemplateSmsObj() {
|
|
1897
|
+
return Joi.object({
|
|
1898
|
+
subscribed: Joi.boolean(),
|
|
1899
|
+
template: Joi.any().allow(null),
|
|
1900
|
+
});
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
/** @returns {EventSubscriptionTemplateEmailObj} */
|
|
1904
|
+
static EventSubscriptionTemplateEmailObj() {
|
|
1905
|
+
return Joi.object({
|
|
1906
|
+
subscribed: Joi.boolean(),
|
|
1907
|
+
template: Joi.string().allow("").allow(null),
|
|
1908
|
+
});
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
/** @returns {EventSubscriptionTemplateObj} */
|
|
1912
|
+
static EventSubscriptionTemplateObj() {
|
|
1913
|
+
return Joi.object({
|
|
1914
|
+
sms: CommunicationPlatformModel.EventSubscriptionTemplateSmsObj(),
|
|
1915
|
+
email: CommunicationPlatformModel.EventSubscriptionTemplateEmailObj(),
|
|
1916
|
+
pushnotification: CommunicationPlatformModel.EventSubscriptionTemplatePushnotification(),
|
|
1917
|
+
});
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
/** @returns {EventSubscriptionObj} */
|
|
1921
|
+
static EventSubscriptionObj() {
|
|
1922
|
+
return Joi.object({
|
|
1923
|
+
template: CommunicationPlatformModel.EventSubscriptionTemplateObj(),
|
|
1924
|
+
is_default: Joi.boolean(),
|
|
1925
|
+
_id: Joi.string().allow(""),
|
|
1926
|
+
application: Joi.string().allow(""),
|
|
1927
|
+
category: Joi.string().allow(""),
|
|
1928
|
+
event: Joi.any(),
|
|
1929
|
+
slug: Joi.string().allow(""),
|
|
1930
|
+
created_at: Joi.string().allow(""),
|
|
1931
|
+
updated_at: Joi.string().allow(""),
|
|
1932
|
+
__v: Joi.number(),
|
|
1933
|
+
});
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1861
1936
|
/** @returns {EventSubscriptions} */
|
|
1862
1937
|
static EventSubscriptions() {
|
|
1863
1938
|
return Joi.object({
|
|
1864
|
-
items: Joi.array().items(
|
|
1939
|
+
items: Joi.array().items(
|
|
1940
|
+
CommunicationPlatformModel.EventSubscriptionObj()
|
|
1941
|
+
),
|
|
1865
1942
|
page: CommunicationPlatformModel.Page(),
|
|
1866
1943
|
});
|
|
1867
1944
|
}
|
|
@@ -1952,8 +2029,8 @@ class CommunicationPlatformModel {
|
|
|
1952
2029
|
/** @returns {JobLog} */
|
|
1953
2030
|
static JobLog() {
|
|
1954
2031
|
return Joi.object({
|
|
1955
|
-
imported:
|
|
1956
|
-
processed:
|
|
2032
|
+
imported: CommunicationPlatformModel.StatsImported(),
|
|
2033
|
+
processed: CommunicationPlatformModel.StatsProcessed(),
|
|
1957
2034
|
_id: Joi.string().allow(""),
|
|
1958
2035
|
job: Joi.string().allow(""),
|
|
1959
2036
|
campaign: Joi.string().allow(""),
|
|
@@ -2038,14 +2115,6 @@ class CommunicationPlatformModel {
|
|
|
2038
2115
|
});
|
|
2039
2116
|
}
|
|
2040
2117
|
|
|
2041
|
-
/** @returns {SendOtpSmsCommsTemplate} */
|
|
2042
|
-
static SendOtpSmsCommsTemplate() {
|
|
2043
|
-
return Joi.object({
|
|
2044
|
-
key: Joi.string().allow(""),
|
|
2045
|
-
value: Joi.any(),
|
|
2046
|
-
});
|
|
2047
|
-
}
|
|
2048
|
-
|
|
2049
2118
|
/** @returns {SendOtpSmsCommsProvider} */
|
|
2050
2119
|
static SendOtpSmsCommsProvider() {
|
|
2051
2120
|
return Joi.object({
|
|
@@ -2085,7 +2154,7 @@ class CommunicationPlatformModel {
|
|
|
2085
2154
|
return Joi.object({
|
|
2086
2155
|
otp_length: Joi.number(),
|
|
2087
2156
|
expiry: Joi.number(),
|
|
2088
|
-
template:
|
|
2157
|
+
template: Joi.object().pattern(/\S/, Joi.any()),
|
|
2089
2158
|
provider: CommunicationPlatformModel.SendOtpSmsCommsProvider(),
|
|
2090
2159
|
});
|
|
2091
2160
|
}
|
|
@@ -2321,6 +2390,15 @@ class CommunicationPlatformModel {
|
|
|
2321
2390
|
});
|
|
2322
2391
|
}
|
|
2323
2392
|
|
|
2393
|
+
/** @returns {SystemNotificationSetting} */
|
|
2394
|
+
static SystemNotificationSetting() {
|
|
2395
|
+
return Joi.object({
|
|
2396
|
+
sound: Joi.boolean(),
|
|
2397
|
+
priority: Joi.string().allow(""),
|
|
2398
|
+
time_to_live: Joi.string().allow(""),
|
|
2399
|
+
});
|
|
2400
|
+
}
|
|
2401
|
+
|
|
2324
2402
|
/** @returns {SystemNotificationUser} */
|
|
2325
2403
|
static SystemNotificationUser() {
|
|
2326
2404
|
return Joi.object({
|
|
@@ -2334,7 +2412,7 @@ class CommunicationPlatformModel {
|
|
|
2334
2412
|
return Joi.object({
|
|
2335
2413
|
notification: CommunicationPlatformModel.Notification(),
|
|
2336
2414
|
user: CommunicationPlatformModel.SystemNotificationUser(),
|
|
2337
|
-
settings: CommunicationPlatformModel.
|
|
2415
|
+
settings: CommunicationPlatformModel.SystemNotificationSetting(),
|
|
2338
2416
|
_id: Joi.string().allow(""),
|
|
2339
2417
|
group: Joi.string().allow(""),
|
|
2340
2418
|
created_at: Joi.string().allow(""),
|
|
@@ -152,7 +152,39 @@ declare class CompanyProfile {
|
|
|
152
152
|
* @summary: Get list of locations
|
|
153
153
|
* @description: This API allows to view all the locations associated to a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/getLocations/).
|
|
154
154
|
*/
|
|
155
|
-
getLocations({ storeType, q, stage, pageNo, pageSize, locationIds, types, tags, requestHeaders, }?: CompanyProfilePlatformValidator.GetLocationsParam, { responseHeaders }?: object): Promise<CompanyProfilePlatformModel.LocationListSerializer>;
|
|
155
|
+
getLocations({ storeType, storeCodes, q, stage, pageNo, pageSize, locationIds, types, tags, requestHeaders, }?: CompanyProfilePlatformValidator.GetLocationsParam, { responseHeaders }?: object): Promise<CompanyProfilePlatformModel.LocationListSerializer>;
|
|
156
|
+
/**
|
|
157
|
+
* @param {Object} arg - Arg object.
|
|
158
|
+
* @param {string} [arg.storeType] - Helps to sort the location list on the
|
|
159
|
+
* basis of location type.
|
|
160
|
+
* @param {string[]} [arg.storeCodes] - List of up to 50 store codes to
|
|
161
|
+
* fetch. Specify multiple values by repeating the query parameter (e.g.,
|
|
162
|
+
* `?store_codes=high_street&store_codes=main_avenue`). Comma-separated
|
|
163
|
+
* values are not supported.
|
|
164
|
+
* @param {string} [arg.q] - Query that is to be searched.
|
|
165
|
+
* @param {string} [arg.stage] - To filter companies on basis of verified or
|
|
166
|
+
* unverified companies.
|
|
167
|
+
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
168
|
+
* page. Default is 10.
|
|
169
|
+
* @param {number[]} [arg.locationIds] - Helps to filter stores on the basis of uids.
|
|
170
|
+
* @param {string[]} [arg.types] - Helps to get the location list on the
|
|
171
|
+
* basis of multiple location type.
|
|
172
|
+
* @param {string[]} [arg.tags] - Helps to get the location list on the
|
|
173
|
+
* basis of multiple location tag.
|
|
174
|
+
* @returns {Paginator<CompanyProfilePlatformModel.LocationListSerializer>}
|
|
175
|
+
* @summary: Get list of locations
|
|
176
|
+
* @description: This API allows to view all the locations associated to a company.
|
|
177
|
+
*/
|
|
178
|
+
getLocationsPaginator({ storeType, storeCodes, q, stage, pageSize, locationIds, types, tags, }?: {
|
|
179
|
+
storeType?: string;
|
|
180
|
+
storeCodes?: string[];
|
|
181
|
+
q?: string;
|
|
182
|
+
stage?: string;
|
|
183
|
+
pageSize?: number;
|
|
184
|
+
locationIds?: number[];
|
|
185
|
+
types?: string[];
|
|
186
|
+
tags?: string[];
|
|
187
|
+
}): Paginator<CompanyProfilePlatformModel.LocationListSerializer>;
|
|
156
188
|
/**
|
|
157
189
|
* @param {CompanyProfilePlatformValidator.UpdateCompanyParam} arg - Arg object
|
|
158
190
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -950,6 +950,7 @@ class CompanyProfile {
|
|
|
950
950
|
async getLocations(
|
|
951
951
|
{
|
|
952
952
|
storeType,
|
|
953
|
+
storeCodes,
|
|
953
954
|
q,
|
|
954
955
|
stage,
|
|
955
956
|
pageNo,
|
|
@@ -964,6 +965,7 @@ class CompanyProfile {
|
|
|
964
965
|
const { error } = CompanyProfilePlatformValidator.getLocations().validate(
|
|
965
966
|
{
|
|
966
967
|
storeType,
|
|
968
|
+
storeCodes,
|
|
967
969
|
q,
|
|
968
970
|
stage,
|
|
969
971
|
pageNo,
|
|
@@ -984,6 +986,7 @@ class CompanyProfile {
|
|
|
984
986
|
} = CompanyProfilePlatformValidator.getLocations().validate(
|
|
985
987
|
{
|
|
986
988
|
storeType,
|
|
989
|
+
storeCodes,
|
|
987
990
|
q,
|
|
988
991
|
stage,
|
|
989
992
|
pageNo,
|
|
@@ -1003,6 +1006,7 @@ class CompanyProfile {
|
|
|
1003
1006
|
|
|
1004
1007
|
const query_params = {};
|
|
1005
1008
|
query_params["store_type"] = storeType;
|
|
1009
|
+
query_params["store_codes"] = storeCodes;
|
|
1006
1010
|
query_params["q"] = q;
|
|
1007
1011
|
query_params["stage"] = stage;
|
|
1008
1012
|
query_params["page_no"] = pageNo;
|
|
@@ -1049,6 +1053,64 @@ class CompanyProfile {
|
|
|
1049
1053
|
return response;
|
|
1050
1054
|
}
|
|
1051
1055
|
|
|
1056
|
+
/**
|
|
1057
|
+
* @param {Object} arg - Arg object.
|
|
1058
|
+
* @param {string} [arg.storeType] - Helps to sort the location list on the
|
|
1059
|
+
* basis of location type.
|
|
1060
|
+
* @param {string[]} [arg.storeCodes] - List of up to 50 store codes to
|
|
1061
|
+
* fetch. Specify multiple values by repeating the query parameter (e.g.,
|
|
1062
|
+
* `?store_codes=high_street&store_codes=main_avenue`). Comma-separated
|
|
1063
|
+
* values are not supported.
|
|
1064
|
+
* @param {string} [arg.q] - Query that is to be searched.
|
|
1065
|
+
* @param {string} [arg.stage] - To filter companies on basis of verified or
|
|
1066
|
+
* unverified companies.
|
|
1067
|
+
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
1068
|
+
* page. Default is 10.
|
|
1069
|
+
* @param {number[]} [arg.locationIds] - Helps to filter stores on the basis of uids.
|
|
1070
|
+
* @param {string[]} [arg.types] - Helps to get the location list on the
|
|
1071
|
+
* basis of multiple location type.
|
|
1072
|
+
* @param {string[]} [arg.tags] - Helps to get the location list on the
|
|
1073
|
+
* basis of multiple location tag.
|
|
1074
|
+
* @returns {Paginator<CompanyProfilePlatformModel.LocationListSerializer>}
|
|
1075
|
+
* @summary: Get list of locations
|
|
1076
|
+
* @description: This API allows to view all the locations associated to a company.
|
|
1077
|
+
*/
|
|
1078
|
+
getLocationsPaginator({
|
|
1079
|
+
storeType,
|
|
1080
|
+
storeCodes,
|
|
1081
|
+
q,
|
|
1082
|
+
stage,
|
|
1083
|
+
pageSize,
|
|
1084
|
+
locationIds,
|
|
1085
|
+
types,
|
|
1086
|
+
tags,
|
|
1087
|
+
} = {}) {
|
|
1088
|
+
const paginator = new Paginator();
|
|
1089
|
+
const callback = async () => {
|
|
1090
|
+
const pageId = paginator.nextId;
|
|
1091
|
+
const pageNo = paginator.pageNo;
|
|
1092
|
+
const pageType = "number";
|
|
1093
|
+
const data = await this.getLocations({
|
|
1094
|
+
storeType: storeType,
|
|
1095
|
+
storeCodes: storeCodes,
|
|
1096
|
+
q: q,
|
|
1097
|
+
stage: stage,
|
|
1098
|
+
pageNo: pageNo,
|
|
1099
|
+
pageSize: pageSize,
|
|
1100
|
+
locationIds: locationIds,
|
|
1101
|
+
types: types,
|
|
1102
|
+
tags: tags,
|
|
1103
|
+
});
|
|
1104
|
+
paginator.setPaginator({
|
|
1105
|
+
hasNext: data.page.has_next ? true : false,
|
|
1106
|
+
nextId: data.page.next_id,
|
|
1107
|
+
});
|
|
1108
|
+
return data;
|
|
1109
|
+
};
|
|
1110
|
+
paginator.setCallback(callback.bind(this));
|
|
1111
|
+
return paginator;
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1052
1114
|
/**
|
|
1053
1115
|
* @param {CompanyProfilePlatformValidator.UpdateCompanyParam} arg - Arg object
|
|
1054
1116
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -43,6 +43,10 @@ export = CompanyProfilePlatformValidator;
|
|
|
43
43
|
* @typedef GetLocationsParam
|
|
44
44
|
* @property {string} [storeType] - Helps to sort the location list on the basis
|
|
45
45
|
* of location type.
|
|
46
|
+
* @property {string[]} [storeCodes] - List of up to 50 store codes to fetch.
|
|
47
|
+
* Specify multiple values by repeating the query parameter (e.g.,
|
|
48
|
+
* `?store_codes=high_street&store_codes=main_avenue`). Comma-separated values
|
|
49
|
+
* are not supported.
|
|
46
50
|
* @property {string} [q] - Query that is to be searched.
|
|
47
51
|
* @property {string} [stage] - To filter companies on basis of verified or
|
|
48
52
|
* unverified companies.
|
|
@@ -151,6 +155,13 @@ type GetLocationsParam = {
|
|
|
151
155
|
* of location type.
|
|
152
156
|
*/
|
|
153
157
|
storeType?: string;
|
|
158
|
+
/**
|
|
159
|
+
* - List of up to 50 store codes to fetch.
|
|
160
|
+
* Specify multiple values by repeating the query parameter (e.g.,
|
|
161
|
+
* `?store_codes=high_street&store_codes=main_avenue`). Comma-separated values
|
|
162
|
+
* are not supported.
|
|
163
|
+
*/
|
|
164
|
+
storeCodes?: string[];
|
|
154
165
|
/**
|
|
155
166
|
* - Query that is to be searched.
|
|
156
167
|
*/
|