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