@gofynd/fdk-client-javascript 3.16.3 → 3.17.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.
Files changed (90) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +0 -2
  4. package/sdk/application/ApplicationClient.js +0 -2
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +40 -0
  6. package/sdk/application/Cart/CartApplicationClient.js +176 -0
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +18 -4
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +47 -4
  9. package/sdk/application/Content/ContentApplicationClient.d.ts +21 -1
  10. package/sdk/application/Content/ContentApplicationClient.js +93 -2
  11. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -21
  12. package/sdk/application/Logistic/LogisticApplicationClient.js +34 -83
  13. package/sdk/application/Order/OrderApplicationClient.d.ts +11 -0
  14. package/sdk/application/Order/OrderApplicationClient.js +50 -0
  15. package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
  16. package/sdk/application/Payment/PaymentApplicationClient.js +5 -4
  17. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +84 -0
  18. package/sdk/partner/Logistics/LogisticsPartnerClient.js +712 -0
  19. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +237 -1
  20. package/sdk/partner/Logistics/LogisticsPartnerModel.js +157 -0
  21. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +8 -0
  22. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +70 -0
  23. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +74 -12
  24. package/sdk/platform/Cart/CartPlatformApplicationClient.js +637 -36
  25. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +225 -1
  26. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +147 -0
  27. package/sdk/platform/Cart/CartPlatformModel.d.ts +952 -5
  28. package/sdk/platform/Cart/CartPlatformModel.js +598 -2
  29. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +125 -5
  30. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +831 -41
  31. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +205 -7
  32. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +154 -3
  33. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +5 -16
  34. package/sdk/platform/Catalog/CatalogPlatformClient.js +8 -85
  35. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1025 -159
  36. package/sdk/platform/Catalog/CatalogPlatformModel.js +840 -165
  37. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +8 -10
  38. package/sdk/platform/Catalog/CatalogPlatformValidator.js +3 -12
  39. package/sdk/platform/Common/CommonPlatformModel.d.ts +18 -1
  40. package/sdk/platform/Common/CommonPlatformModel.js +14 -0
  41. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +1 -73
  42. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +4 -462
  43. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +7 -45
  44. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +4 -55
  45. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +10 -2
  46. package/sdk/platform/Communication/CommunicationPlatformModel.js +3 -2
  47. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +14 -0
  48. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +6 -0
  49. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +92 -1
  50. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +54 -0
  51. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +21 -0
  52. package/sdk/platform/Discount/DiscountPlatformModel.js +9 -0
  53. package/sdk/platform/Order/OrderPlatformClient.d.ts +27 -19
  54. package/sdk/platform/Order/OrderPlatformClient.js +176 -108
  55. package/sdk/platform/Order/OrderPlatformModel.d.ts +359 -45
  56. package/sdk/platform/Order/OrderPlatformModel.js +218 -44
  57. package/sdk/platform/Order/OrderPlatformValidator.d.ts +40 -43
  58. package/sdk/platform/Order/OrderPlatformValidator.js +35 -30
  59. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +14 -3
  60. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +88 -6
  61. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +28 -3
  62. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +22 -2
  63. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +376 -11
  64. package/sdk/platform/Payment/PaymentPlatformModel.js +243 -10
  65. package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
  66. package/sdk/platform/PlatformApplicationClient.js +0 -4
  67. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +0 -13
  68. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +0 -82
  69. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +1 -10
  70. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +0 -12
  71. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +212 -28
  72. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +133 -13
  73. package/sdk/platform/User/UserPlatformModel.d.ts +2 -2
  74. package/sdk/platform/User/UserPlatformModel.js +4 -4
  75. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +29 -0
  76. package/sdk/platform/Webhook/WebhookPlatformModel.js +13 -0
  77. package/sdk/platform/index.d.ts +0 -1
  78. package/sdk/platform/index.js +0 -2
  79. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +27 -1
  80. package/sdk/public/Configuration/ConfigurationPublicModel.js +19 -0
  81. package/sdk/public/Webhook/WebhookPublicModel.d.ts +29 -0
  82. package/sdk/public/Webhook/WebhookPublicModel.js +13 -0
  83. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
  84. package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
  85. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
  86. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
  87. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
  88. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
  89. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -387
  90. package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -410
@@ -1,152 +0,0 @@
1
- export = RewardsPlatformApplicationValidator;
2
- /**
3
- * @typedef GetGiveawayByIdParam
4
- * @property {string} id - Giveaway ID
5
- */
6
- /**
7
- * @typedef GetOfferByNameParam
8
- * @property {string} name - The name given to the offer.
9
- */
10
- /** @typedef GetRewardsConfigurationParam */
11
- /**
12
- * @typedef GetUserDetailsParam
13
- * @property {string} userId - User id
14
- */
15
- /**
16
- * @typedef GetUserPointsHistoryParam
17
- * @property {string} userId - User id
18
- * @property {string} [pageId] - PageID is the ID of the requested page. For
19
- * first request it should be kept empty.
20
- * @property {number} [pageSize] - The number of items to retrieve in each page.
21
- */
22
- /**
23
- * @typedef SaveGiveAwayParam
24
- * @property {RewardsPlatformModel.Giveaway} body
25
- */
26
- /**
27
- * @typedef SetRewardsConfigurationParam
28
- * @property {RewardsPlatformModel.SetConfiguration} body
29
- */
30
- /**
31
- * @typedef ShowGiveawaysParam
32
- * @property {string} pageId - Pagination page id
33
- * @property {number} pageSize - Pagination page size
34
- */
35
- /** @typedef ShowOffersParam */
36
- /**
37
- * @typedef UpdateGiveAwayParam
38
- * @property {string} id - Giveaway ID
39
- * @property {RewardsPlatformModel.Giveaway} body
40
- */
41
- /**
42
- * @typedef UpdateOfferByNameParam
43
- * @property {string} name - The name given to the offer.
44
- * @property {RewardsPlatformModel.Offer} body
45
- */
46
- /**
47
- * @typedef UpdateUserStatusParam
48
- * @property {string} userId - User id
49
- * @property {RewardsPlatformModel.AppUser} body
50
- */
51
- declare class RewardsPlatformApplicationValidator {
52
- /** @returns {GetGiveawayByIdParam} */
53
- static getGiveawayById(): GetGiveawayByIdParam;
54
- /** @returns {GetOfferByNameParam} */
55
- static getOfferByName(): GetOfferByNameParam;
56
- /** @returns {GetRewardsConfigurationParam} */
57
- static getRewardsConfiguration(): any;
58
- /** @returns {GetUserDetailsParam} */
59
- static getUserDetails(): GetUserDetailsParam;
60
- /** @returns {GetUserPointsHistoryParam} */
61
- static getUserPointsHistory(): GetUserPointsHistoryParam;
62
- /** @returns {SaveGiveAwayParam} */
63
- static saveGiveAway(): SaveGiveAwayParam;
64
- /** @returns {SetRewardsConfigurationParam} */
65
- static setRewardsConfiguration(): SetRewardsConfigurationParam;
66
- /** @returns {ShowGiveawaysParam} */
67
- static showGiveaways(): ShowGiveawaysParam;
68
- /** @returns {ShowOffersParam} */
69
- static showOffers(): any;
70
- /** @returns {UpdateGiveAwayParam} */
71
- static updateGiveAway(): UpdateGiveAwayParam;
72
- /** @returns {UpdateOfferByNameParam} */
73
- static updateOfferByName(): UpdateOfferByNameParam;
74
- /** @returns {UpdateUserStatusParam} */
75
- static updateUserStatus(): UpdateUserStatusParam;
76
- }
77
- declare namespace RewardsPlatformApplicationValidator {
78
- export { GetGiveawayByIdParam, GetOfferByNameParam, GetRewardsConfigurationParam, GetUserDetailsParam, GetUserPointsHistoryParam, SaveGiveAwayParam, SetRewardsConfigurationParam, ShowGiveawaysParam, ShowOffersParam, UpdateGiveAwayParam, UpdateOfferByNameParam, UpdateUserStatusParam };
79
- }
80
- type GetGiveawayByIdParam = {
81
- /**
82
- * - Giveaway ID
83
- */
84
- id: string;
85
- };
86
- type GetOfferByNameParam = {
87
- /**
88
- * - The name given to the offer.
89
- */
90
- name: string;
91
- };
92
- type GetUserDetailsParam = {
93
- /**
94
- * - User id
95
- */
96
- userId: string;
97
- };
98
- type GetUserPointsHistoryParam = {
99
- /**
100
- * - User id
101
- */
102
- userId: string;
103
- /**
104
- * - PageID is the ID of the requested page. For
105
- * first request it should be kept empty.
106
- */
107
- pageId?: string;
108
- /**
109
- * - The number of items to retrieve in each page.
110
- */
111
- pageSize?: number;
112
- };
113
- type SaveGiveAwayParam = {
114
- body: RewardsPlatformModel.Giveaway;
115
- };
116
- type SetRewardsConfigurationParam = {
117
- body: RewardsPlatformModel.SetConfiguration;
118
- };
119
- type ShowGiveawaysParam = {
120
- /**
121
- * - Pagination page id
122
- */
123
- pageId: string;
124
- /**
125
- * - Pagination page size
126
- */
127
- pageSize: number;
128
- };
129
- type UpdateGiveAwayParam = {
130
- /**
131
- * - Giveaway ID
132
- */
133
- id: string;
134
- body: RewardsPlatformModel.Giveaway;
135
- };
136
- type UpdateOfferByNameParam = {
137
- /**
138
- * - The name given to the offer.
139
- */
140
- name: string;
141
- body: RewardsPlatformModel.Offer;
142
- };
143
- type UpdateUserStatusParam = {
144
- /**
145
- * - User id
146
- */
147
- userId: string;
148
- body: RewardsPlatformModel.AppUser;
149
- };
150
- type GetRewardsConfigurationParam = any;
151
- type ShowOffersParam = any;
152
- import RewardsPlatformModel = require("./RewardsPlatformModel");
@@ -1,157 +0,0 @@
1
- const Joi = require("joi");
2
-
3
- const RewardsPlatformModel = require("./RewardsPlatformModel");
4
-
5
- /**
6
- * @typedef GetGiveawayByIdParam
7
- * @property {string} id - Giveaway ID
8
- */
9
-
10
- /**
11
- * @typedef GetOfferByNameParam
12
- * @property {string} name - The name given to the offer.
13
- */
14
-
15
- /** @typedef GetRewardsConfigurationParam */
16
-
17
- /**
18
- * @typedef GetUserDetailsParam
19
- * @property {string} userId - User id
20
- */
21
-
22
- /**
23
- * @typedef GetUserPointsHistoryParam
24
- * @property {string} userId - User id
25
- * @property {string} [pageId] - PageID is the ID of the requested page. For
26
- * first request it should be kept empty.
27
- * @property {number} [pageSize] - The number of items to retrieve in each page.
28
- */
29
-
30
- /**
31
- * @typedef SaveGiveAwayParam
32
- * @property {RewardsPlatformModel.Giveaway} body
33
- */
34
-
35
- /**
36
- * @typedef SetRewardsConfigurationParam
37
- * @property {RewardsPlatformModel.SetConfiguration} body
38
- */
39
-
40
- /**
41
- * @typedef ShowGiveawaysParam
42
- * @property {string} pageId - Pagination page id
43
- * @property {number} pageSize - Pagination page size
44
- */
45
-
46
- /** @typedef ShowOffersParam */
47
-
48
- /**
49
- * @typedef UpdateGiveAwayParam
50
- * @property {string} id - Giveaway ID
51
- * @property {RewardsPlatformModel.Giveaway} body
52
- */
53
-
54
- /**
55
- * @typedef UpdateOfferByNameParam
56
- * @property {string} name - The name given to the offer.
57
- * @property {RewardsPlatformModel.Offer} body
58
- */
59
-
60
- /**
61
- * @typedef UpdateUserStatusParam
62
- * @property {string} userId - User id
63
- * @property {RewardsPlatformModel.AppUser} body
64
- */
65
-
66
- class RewardsPlatformApplicationValidator {
67
- /** @returns {GetGiveawayByIdParam} */
68
- static getGiveawayById() {
69
- return Joi.object({
70
- id: Joi.string().allow("").required(),
71
- }).required();
72
- }
73
-
74
- /** @returns {GetOfferByNameParam} */
75
- static getOfferByName() {
76
- return Joi.object({
77
- name: Joi.string().allow("").required(),
78
- }).required();
79
- }
80
-
81
- /** @returns {GetRewardsConfigurationParam} */
82
- static getRewardsConfiguration() {
83
- return Joi.object({}).required();
84
- }
85
-
86
- /** @returns {GetUserDetailsParam} */
87
- static getUserDetails() {
88
- return Joi.object({
89
- userId: Joi.string().allow("").required(),
90
- }).required();
91
- }
92
-
93
- /** @returns {GetUserPointsHistoryParam} */
94
- static getUserPointsHistory() {
95
- return Joi.object({
96
- userId: Joi.string().allow("").required(),
97
-
98
- pageId: Joi.string().allow(""),
99
- pageSize: Joi.number(),
100
- }).required();
101
- }
102
-
103
- /** @returns {SaveGiveAwayParam} */
104
- static saveGiveAway() {
105
- return Joi.object({
106
- body: RewardsPlatformModel.Giveaway().required(),
107
- }).required();
108
- }
109
-
110
- /** @returns {SetRewardsConfigurationParam} */
111
- static setRewardsConfiguration() {
112
- return Joi.object({
113
- body: RewardsPlatformModel.SetConfiguration().required(),
114
- }).required();
115
- }
116
-
117
- /** @returns {ShowGiveawaysParam} */
118
- static showGiveaways() {
119
- return Joi.object({
120
- pageId: Joi.string().allow("").required(),
121
- pageSize: Joi.number().required(),
122
- }).required();
123
- }
124
-
125
- /** @returns {ShowOffersParam} */
126
- static showOffers() {
127
- return Joi.object({}).required();
128
- }
129
-
130
- /** @returns {UpdateGiveAwayParam} */
131
- static updateGiveAway() {
132
- return Joi.object({
133
- id: Joi.string().allow("").required(),
134
- body: RewardsPlatformModel.Giveaway().required(),
135
- }).required();
136
- }
137
-
138
- /** @returns {UpdateOfferByNameParam} */
139
- static updateOfferByName() {
140
- return Joi.object({
141
- name: Joi.string().allow("").required(),
142
-
143
- body: RewardsPlatformModel.Offer().required(),
144
- }).required();
145
- }
146
-
147
- /** @returns {UpdateUserStatusParam} */
148
- static updateUserStatus() {
149
- return Joi.object({
150
- userId: Joi.string().allow("").required(),
151
-
152
- body: RewardsPlatformModel.AppUser().required(),
153
- }).required();
154
- }
155
- }
156
-
157
- module.exports = RewardsPlatformApplicationValidator;
@@ -1,387 +0,0 @@
1
- export = RewardsPlatformModel;
2
- /**
3
- * @typedef E
4
- * @property {number} [code]
5
- * @property {string} [exception]
6
- * @property {string} [info]
7
- * @property {string} [message]
8
- */
9
- /**
10
- * @typedef ListGiveaway
11
- * @property {Giveaway[]} [items]
12
- * @property {Page} [page]
13
- */
14
- /**
15
- * @typedef Giveaway
16
- * @property {string} [_id]
17
- * @property {Schedule} [_schedule]
18
- * @property {boolean} [active]
19
- * @property {string} [application_id]
20
- * @property {RewardsAudience} [audience]
21
- * @property {Asset} [banner_image]
22
- * @property {string} [created_at]
23
- * @property {string} [description]
24
- * @property {string} [name]
25
- * @property {RewardsRule} [rule]
26
- * @property {string} [title]
27
- * @property {string} [updated_at]
28
- */
29
- /**
30
- * @typedef Schedule
31
- * @property {number} [duration]
32
- * @property {string} [end]
33
- * @property {string} [start]
34
- * @property {string} [cron]
35
- */
36
- /**
37
- * @typedef RewardsAudience
38
- * @property {string} [header_user_id]
39
- * @property {string} [id]
40
- */
41
- /**
42
- * @typedef Asset
43
- * @property {string} [aspect_ratio]
44
- * @property {string} [id]
45
- * @property {string} [secure_url]
46
- */
47
- /**
48
- * @typedef RewardsRule
49
- * @property {number} [amount]
50
- */
51
- /**
52
- * @typedef Page
53
- * @property {number} [item_total] - The total number of all items across all pages.
54
- * @property {string} [next_id] - The identifier for the next page.
55
- * @property {boolean} [has_previous] - Indicates whether there is a previous page.
56
- * @property {boolean} [has_next] - Indicates whether there is a next page.
57
- * @property {number} [current] - The current page number.
58
- * @property {string} type - The type of the page, can be 'cursor' or 'number'.
59
- * @property {number} [size] - The number of items per page.
60
- * @property {number} [page_size] - The number of items per page.
61
- */
62
- /**
63
- * @typedef Offer
64
- * @property {Schedule} [_schedule]
65
- * @property {boolean} [active]
66
- * @property {string} [application_id]
67
- * @property {Asset} [banner_image]
68
- * @property {string} [created_at]
69
- * @property {string} [name]
70
- * @property {Object} [rule]
71
- * @property {ShareMessages} [share]
72
- * @property {string} [sub_text]
73
- * @property {string} [text]
74
- * @property {string} [type]
75
- * @property {string} [updated_at]
76
- * @property {string} [updated_by]
77
- * @property {string} [url]
78
- */
79
- /**
80
- * @typedef ShareMessages
81
- * @property {number} [email]
82
- * @property {string} [facebook]
83
- * @property {string} [fallback]
84
- * @property {string} [message]
85
- * @property {string} [messenger]
86
- * @property {string} [sms]
87
- * @property {string} [text]
88
- * @property {string} [twitter]
89
- * @property {string} [whatsapp]
90
- */
91
- /**
92
- * @typedef UserRes
93
- * @property {Points} [points]
94
- * @property {RewardUser} [user]
95
- */
96
- /**
97
- * @typedef Points
98
- * @property {number} [available]
99
- */
100
- /**
101
- * @typedef RewardUser
102
- * @property {string} [_id]
103
- * @property {boolean} [active]
104
- * @property {string} [created_at]
105
- * @property {Referral} [referral]
106
- * @property {number} [uid]
107
- * @property {string} [updated_at]
108
- * @property {string} [user_block_reason]
109
- * @property {string} [user_id]
110
- */
111
- /**
112
- * @typedef Referral
113
- * @property {string} [code]
114
- */
115
- /**
116
- * @typedef AppUser
117
- * @property {string} [_id]
118
- * @property {boolean} [active]
119
- * @property {string} [application_id]
120
- * @property {string} [block_reason]
121
- * @property {string} [updated_at]
122
- * @property {string} [updated_by]
123
- * @property {string} [user_id]
124
- */
125
- /**
126
- * @typedef HistoryRes
127
- * @property {PointsHistory[]} [items] - History is the list of points transaction.
128
- * @property {Page} [page]
129
- * @property {number} [points]
130
- */
131
- /**
132
- * @typedef PointsHistory
133
- * @property {string} [_id]
134
- * @property {string} [application_id]
135
- * @property {boolean} [claimed]
136
- * @property {string} [created_at]
137
- * @property {string} [expires_on]
138
- * @property {Object} [meta]
139
- * @property {number} [points]
140
- * @property {number} [remaining_points]
141
- * @property {string} [text_1]
142
- * @property {string} [text_2]
143
- * @property {string} [text_3]
144
- * @property {string} [txn_name]
145
- * @property {string} [updated_at]
146
- * @property {string} [user_id]
147
- */
148
- /**
149
- * @typedef ConfigurationRes
150
- * @property {string[]} [valid_android_packages] - Contains array of string
151
- * items, Valid android package names.
152
- * @property {string} [terms_conditions_link] - A URL that redirects to the
153
- * referral information suport page link
154
- * @property {string} [application_id]
155
- * @property {boolean} [success]
156
- */
157
- /**
158
- * @typedef SetConfigurationRes
159
- * @property {boolean} [success]
160
- */
161
- /**
162
- * @typedef SetConfiguration
163
- * @property {string[]} [valid_android_packages]
164
- * @property {string} [terms_conditions_link]
165
- */
166
- declare class RewardsPlatformModel {
167
- }
168
- declare namespace RewardsPlatformModel {
169
- export { E, ListGiveaway, Giveaway, Schedule, RewardsAudience, Asset, RewardsRule, Page, Offer, ShareMessages, UserRes, Points, RewardUser, Referral, AppUser, HistoryRes, PointsHistory, ConfigurationRes, SetConfigurationRes, SetConfiguration };
170
- }
171
- /** @returns {E} */
172
- declare function E(): E;
173
- type E = {
174
- code?: number;
175
- exception?: string;
176
- info?: string;
177
- message?: string;
178
- };
179
- /** @returns {ListGiveaway} */
180
- declare function ListGiveaway(): ListGiveaway;
181
- type ListGiveaway = {
182
- items?: Giveaway[];
183
- page?: Page;
184
- };
185
- /** @returns {Giveaway} */
186
- declare function Giveaway(): Giveaway;
187
- type Giveaway = {
188
- _id?: string;
189
- _schedule?: Schedule;
190
- active?: boolean;
191
- application_id?: string;
192
- audience?: RewardsAudience;
193
- banner_image?: Asset;
194
- created_at?: string;
195
- description?: string;
196
- name?: string;
197
- rule?: RewardsRule;
198
- title?: string;
199
- updated_at?: string;
200
- };
201
- /** @returns {Schedule} */
202
- declare function Schedule(): Schedule;
203
- type Schedule = {
204
- duration?: number;
205
- end?: string;
206
- start?: string;
207
- cron?: string;
208
- };
209
- /** @returns {RewardsAudience} */
210
- declare function RewardsAudience(): RewardsAudience;
211
- type RewardsAudience = {
212
- header_user_id?: string;
213
- id?: string;
214
- };
215
- /** @returns {Asset} */
216
- declare function Asset(): Asset;
217
- type Asset = {
218
- aspect_ratio?: string;
219
- id?: string;
220
- secure_url?: string;
221
- };
222
- /** @returns {RewardsRule} */
223
- declare function RewardsRule(): RewardsRule;
224
- type RewardsRule = {
225
- amount?: number;
226
- };
227
- /** @returns {Page} */
228
- declare function Page(): Page;
229
- type Page = {
230
- /**
231
- * - The total number of all items across all pages.
232
- */
233
- item_total?: number;
234
- /**
235
- * - The identifier for the next page.
236
- */
237
- next_id?: string;
238
- /**
239
- * - Indicates whether there is a previous page.
240
- */
241
- has_previous?: boolean;
242
- /**
243
- * - Indicates whether there is a next page.
244
- */
245
- has_next?: boolean;
246
- /**
247
- * - The current page number.
248
- */
249
- current?: number;
250
- /**
251
- * - The type of the page, can be 'cursor' or 'number'.
252
- */
253
- type: string;
254
- /**
255
- * - The number of items per page.
256
- */
257
- size?: number;
258
- /**
259
- * - The number of items per page.
260
- */
261
- page_size?: number;
262
- };
263
- /** @returns {Offer} */
264
- declare function Offer(): Offer;
265
- type Offer = {
266
- _schedule?: Schedule;
267
- active?: boolean;
268
- application_id?: string;
269
- banner_image?: Asset;
270
- created_at?: string;
271
- name?: string;
272
- rule?: any;
273
- share?: ShareMessages;
274
- sub_text?: string;
275
- text?: string;
276
- type?: string;
277
- updated_at?: string;
278
- updated_by?: string;
279
- url?: string;
280
- };
281
- /** @returns {ShareMessages} */
282
- declare function ShareMessages(): ShareMessages;
283
- type ShareMessages = {
284
- email?: number;
285
- facebook?: string;
286
- fallback?: string;
287
- message?: string;
288
- messenger?: string;
289
- sms?: string;
290
- text?: string;
291
- twitter?: string;
292
- whatsapp?: string;
293
- };
294
- /** @returns {UserRes} */
295
- declare function UserRes(): UserRes;
296
- type UserRes = {
297
- points?: Points;
298
- user?: RewardUser;
299
- };
300
- /** @returns {Points} */
301
- declare function Points(): Points;
302
- type Points = {
303
- available?: number;
304
- };
305
- /** @returns {RewardUser} */
306
- declare function RewardUser(): RewardUser;
307
- type RewardUser = {
308
- _id?: string;
309
- active?: boolean;
310
- created_at?: string;
311
- referral?: Referral;
312
- uid?: number;
313
- updated_at?: string;
314
- user_block_reason?: string;
315
- user_id?: string;
316
- };
317
- /** @returns {Referral} */
318
- declare function Referral(): Referral;
319
- type Referral = {
320
- code?: string;
321
- };
322
- /** @returns {AppUser} */
323
- declare function AppUser(): AppUser;
324
- type AppUser = {
325
- _id?: string;
326
- active?: boolean;
327
- application_id?: string;
328
- block_reason?: string;
329
- updated_at?: string;
330
- updated_by?: string;
331
- user_id?: string;
332
- };
333
- /** @returns {HistoryRes} */
334
- declare function HistoryRes(): HistoryRes;
335
- type HistoryRes = {
336
- /**
337
- * - History is the list of points transaction.
338
- */
339
- items?: PointsHistory[];
340
- page?: Page;
341
- points?: number;
342
- };
343
- /** @returns {PointsHistory} */
344
- declare function PointsHistory(): PointsHistory;
345
- type PointsHistory = {
346
- _id?: string;
347
- application_id?: string;
348
- claimed?: boolean;
349
- created_at?: string;
350
- expires_on?: string;
351
- meta?: any;
352
- points?: number;
353
- remaining_points?: number;
354
- text_1?: string;
355
- text_2?: string;
356
- text_3?: string;
357
- txn_name?: string;
358
- updated_at?: string;
359
- user_id?: string;
360
- };
361
- /** @returns {ConfigurationRes} */
362
- declare function ConfigurationRes(): ConfigurationRes;
363
- type ConfigurationRes = {
364
- /**
365
- * - Contains array of string
366
- * items, Valid android package names.
367
- */
368
- valid_android_packages?: string[];
369
- /**
370
- * - A URL that redirects to the
371
- * referral information suport page link
372
- */
373
- terms_conditions_link?: string;
374
- application_id?: string;
375
- success?: boolean;
376
- };
377
- /** @returns {SetConfigurationRes} */
378
- declare function SetConfigurationRes(): SetConfigurationRes;
379
- type SetConfigurationRes = {
380
- success?: boolean;
381
- };
382
- /** @returns {SetConfiguration} */
383
- declare function SetConfiguration(): SetConfiguration;
384
- type SetConfiguration = {
385
- valid_android_packages?: string[];
386
- terms_conditions_link?: string;
387
- };