@snagsolutions/sdk 0.1.0-alpha.16 → 0.1.0-alpha.161
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/CHANGELOG.md +1336 -0
- package/README.md +13 -23
- package/core.d.ts +19 -5
- package/core.d.ts.map +1 -1
- package/core.js +24 -17
- package/core.js.map +1 -1
- package/core.mjs +24 -17
- package/core.mjs.map +1 -1
- package/index.d.mts +9 -6
- package/index.d.ts +9 -6
- package/index.d.ts.map +1 -1
- package/index.js +8 -4
- package/index.js.map +1 -1
- package/index.mjs +9 -5
- package/index.mjs.map +1 -1
- package/package.json +4 -5
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/assets.d.ts +16 -2
- package/resources/assets.d.ts.map +1 -1
- package/resources/assets.js +8 -0
- package/resources/assets.js.map +1 -1
- package/resources/assets.mjs +8 -0
- package/resources/assets.mjs.map +1 -1
- package/resources/auctions/auctions.d.ts +285 -0
- package/resources/auctions/auctions.d.ts.map +1 -0
- package/resources/auctions/auctions.js +76 -0
- package/resources/auctions/auctions.js.map +1 -0
- package/resources/auctions/auctions.mjs +49 -0
- package/resources/auctions/auctions.mjs.map +1 -0
- package/resources/auctions/index.d.ts +3 -0
- package/resources/auctions/index.d.ts.map +1 -0
- package/resources/auctions/index.js +9 -0
- package/resources/auctions/index.js.map +1 -0
- package/resources/auctions/index.mjs +4 -0
- package/resources/auctions/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/index.d.ts +3 -0
- package/resources/auctions/website-user-attributes/index.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/index.js +9 -0
- package/resources/auctions/website-user-attributes/index.js.map +1 -0
- package/resources/auctions/website-user-attributes/index.mjs +4 -0
- package/resources/auctions/website-user-attributes/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/values.d.ts +76 -0
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/values.js +35 -0
- package/resources/auctions/website-user-attributes/values.js.map +1 -0
- package/resources/auctions/website-user-attributes/values.mjs +31 -0
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +92 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js +69 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +42 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -0
- package/resources/auctions/website-user-attributes.d.ts +2 -0
- package/resources/auctions/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes.js +19 -0
- package/resources/auctions/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes.mjs +3 -0
- package/resources/auctions/website-user-attributes.mjs.map +1 -0
- package/resources/auctions.d.ts +1 -133
- package/resources/auctions.d.ts.map +1 -1
- package/resources/auctions.js +15 -22
- package/resources/auctions.js.map +1 -1
- package/resources/auctions.mjs +1 -20
- package/resources/auctions.mjs.map +1 -1
- package/resources/auth.d.ts +11 -3
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.js.map +1 -1
- package/resources/auth.mjs.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/account-streaks.d.ts +81 -0
- package/resources/loyalty/account-streaks.d.ts.map +1 -0
- package/resources/loyalty/account-streaks.js +24 -0
- package/resources/loyalty/account-streaks.js.map +1 -0
- package/resources/loyalty/account-streaks.mjs +20 -0
- package/resources/loyalty/account-streaks.mjs.map +1 -0
- package/resources/loyalty/accounts.d.ts +58 -16
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +13 -0
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +13 -0
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +472 -22
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/badges.js +19 -1
- package/resources/loyalty/badges.js.map +1 -1
- package/resources/loyalty/badges.mjs +19 -1
- package/resources/loyalty/badges.mjs.map +1 -1
- package/resources/loyalty/currencies.d.ts +19 -0
- package/resources/loyalty/currencies.d.ts.map +1 -1
- package/resources/loyalty/currencies.js +19 -0
- package/resources/loyalty/currencies.js.map +1 -1
- package/resources/loyalty/currencies.mjs +19 -0
- package/resources/loyalty/currencies.mjs.map +1 -1
- package/resources/loyalty/index.d.ts +4 -3
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js +5 -3
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +2 -1
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +10 -6
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +6 -2
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +7 -3
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/multipliers.d.ts +39 -2
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +23 -0
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +23 -0
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/questions-responses.d.ts +39 -0
- package/resources/loyalty/questions-responses.d.ts.map +1 -1
- package/resources/loyalty/questions-responses.js +9 -0
- package/resources/loyalty/questions-responses.js.map +1 -1
- package/resources/loyalty/questions-responses.mjs +9 -0
- package/resources/loyalty/questions-responses.mjs.map +1 -1
- package/resources/loyalty/questions.d.ts +37 -2
- package/resources/loyalty/questions.d.ts.map +1 -1
- package/resources/loyalty/questions.js +31 -0
- package/resources/loyalty/questions.js.map +1 -1
- package/resources/loyalty/questions.mjs +31 -0
- package/resources/loyalty/questions.mjs.map +1 -1
- package/resources/loyalty/rule-edits.d.ts +2610 -4
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +14 -0
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +14 -0
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +269 -58
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rule-groups.js +36 -0
- package/resources/loyalty/rule-groups.js.map +1 -1
- package/resources/loyalty/rule-groups.mjs +36 -0
- package/resources/loyalty/rule-groups.mjs.map +1 -1
- package/resources/loyalty/rules.d.ts +1848 -265
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/rules.js +40 -9
- package/resources/loyalty/rules.js.map +1 -1
- package/resources/loyalty/rules.mjs +40 -9
- package/resources/loyalty/rules.mjs.map +1 -1
- package/resources/loyalty/transactions/index.d.ts +3 -0
- package/resources/loyalty/transactions/index.d.ts.map +1 -0
- package/resources/loyalty/transactions/index.js +9 -0
- package/resources/loyalty/transactions/index.js.map +1 -0
- package/resources/loyalty/transactions/index.mjs +4 -0
- package/resources/loyalty/transactions/index.mjs.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts +61 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.js +23 -0
- package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.mjs +19 -0
- package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
- package/resources/loyalty/transactions/transactions.d.ts +292 -0
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions/transactions.js +61 -0
- package/resources/loyalty/transactions/transactions.js.map +1 -0
- package/resources/loyalty/transactions/transactions.mjs +34 -0
- package/resources/loyalty/transactions/transactions.mjs.map +1 -0
- package/resources/loyalty/transactions.d.ts +1 -247
- package/resources/loyalty/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions.js +15 -18
- package/resources/loyalty/transactions.js.map +1 -1
- package/resources/loyalty/transactions.mjs +1 -16
- package/resources/loyalty/transactions.mjs.map +1 -1
- package/resources/minting.d.ts +5 -5
- package/resources/minting.d.ts.map +1 -1
- package/resources/referral/referral.d.ts +11 -3
- package/resources/referral/referral.d.ts.map +1 -1
- package/resources/referral/referral.js +11 -5
- package/resources/referral/referral.js.map +1 -1
- package/resources/referral/referral.mjs +11 -5
- package/resources/referral/referral.mjs.map +1 -1
- package/resources/referral/users.d.ts +28 -1
- package/resources/referral/users.d.ts.map +1 -1
- package/resources/referral/users.js +14 -0
- package/resources/referral/users.js.map +1 -1
- package/resources/referral/users.mjs +14 -0
- package/resources/referral/users.mjs.map +1 -1
- package/resources/users/index.d.ts +1 -1
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/metadatas.d.ts +27 -0
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +144 -6
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +53 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +53 -1
- package/resources/users/users.mjs.map +1 -1
- package/resources/websites/index.d.ts +2 -2
- package/resources/websites/index.d.ts.map +1 -1
- package/resources/websites/index.js.map +1 -1
- package/resources/websites/index.mjs +2 -2
- package/resources/websites/index.mjs.map +1 -1
- package/resources/websites/website-collections.d.ts +0 -69
- package/resources/websites/website-collections.d.ts.map +1 -1
- package/resources/websites/website-collections.js +0 -16
- package/resources/websites/website-collections.js.map +1 -1
- package/resources/websites/website-collections.mjs +0 -16
- package/resources/websites/website-collections.mjs.map +1 -1
- package/resources/websites/website-user-roles.d.ts +23 -0
- package/resources/websites/website-user-roles.d.ts.map +1 -1
- package/resources/websites/website-user-roles.js +23 -0
- package/resources/websites/website-user-roles.js.map +1 -1
- package/resources/websites/website-user-roles.mjs +23 -0
- package/resources/websites/website-user-roles.mjs.map +1 -1
- package/resources/websites/websites.d.ts +8 -98
- package/resources/websites/websites.d.ts.map +1 -1
- package/resources/websites/websites.js +0 -6
- package/resources/websites/websites.js.map +1 -1
- package/resources/websites/websites.mjs +1 -7
- package/resources/websites/websites.mjs.map +1 -1
- package/src/core.ts +39 -16
- package/src/index.ts +30 -11
- package/src/resource.ts +1 -1
- package/src/resources/assets.ts +18 -2
- package/src/resources/auctions/auctions.ts +432 -0
- package/src/resources/auctions/index.ts +16 -0
- package/src/resources/auctions/website-user-attributes/index.ts +10 -0
- package/src/resources/auctions/website-user-attributes/values.ts +97 -0
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +137 -0
- package/src/resources/auctions/website-user-attributes.ts +3 -0
- package/src/resources/auctions.ts +1 -207
- package/src/resources/auth.ts +14 -4
- package/src/resources/index.ts +12 -8
- package/src/resources/loyalty/account-streaks.ts +110 -0
- package/src/resources/loyalty/accounts.ts +63 -18
- package/src/resources/loyalty/badges.ts +567 -24
- package/src/resources/loyalty/currencies.ts +19 -0
- package/src/resources/loyalty/index.ts +12 -1
- package/src/resources/loyalty/loyalty.ts +33 -3
- package/src/resources/loyalty/multipliers.ts +43 -4
- package/src/resources/loyalty/questions-responses.ts +45 -0
- package/src/resources/loyalty/questions.ts +38 -2
- package/src/resources/loyalty/rule-edits.ts +3669 -51
- package/src/resources/loyalty/rule-groups.ts +444 -65
- package/src/resources/loyalty/rules.ts +2769 -326
- package/src/resources/loyalty/transactions/index.ts +10 -0
- package/src/resources/loyalty/transactions/rule-statuses.ts +87 -0
- package/src/resources/loyalty/transactions/transactions.ts +520 -0
- package/src/resources/loyalty/transactions.ts +1 -330
- package/src/resources/minting.ts +19 -5
- package/src/resources/referral/referral.ts +13 -11
- package/src/resources/referral/users.ts +33 -2
- package/src/resources/users/index.ts +4 -0
- package/src/resources/users/metadatas.ts +52 -0
- package/src/resources/users/users.ts +192 -5
- package/src/resources/websites/index.ts +2 -13
- package/src/resources/websites/website-collections.ts +1 -145
- package/src/resources/websites/website-user-roles.ts +23 -0
- package/src/resources/websites/websites.ts +8 -134
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -2,30 +2,74 @@ import { APIResource } from "../../resource.js";
|
|
|
2
2
|
import * as Core from "../../core.js";
|
|
3
3
|
export declare class Badges extends APIResource {
|
|
4
4
|
/**
|
|
5
|
-
* This endpoint allows you to configure a new badge
|
|
5
|
+
* This endpoint allows you to configure a new badge
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const badge = await client.loyalty.badges.create({
|
|
10
|
+
* conditions: [{}],
|
|
11
|
+
* imageUrl: 'https://example.com/image.png',
|
|
12
|
+
* name: 'Example Badge',
|
|
13
|
+
* organizationId: '123e4567-e89b-12d3-a456-426614174222',
|
|
14
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174111',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
6
17
|
*/
|
|
7
18
|
create(body: BadgeCreateParams, options?: Core.RequestOptions): Core.APIPromise<BadgeCreateResponse>;
|
|
8
19
|
/**
|
|
9
20
|
* This endpoint allows you to update an existing badge.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const badge = await client.loyalty.badges.update(
|
|
25
|
+
* '123e4567-e89b-12d3-a456-426614174333',
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
10
28
|
*/
|
|
11
29
|
update(id: string, body?: BadgeUpdateParams, options?: Core.RequestOptions): Core.APIPromise<BadgeUpdateResponse>;
|
|
12
30
|
update(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeUpdateResponse>;
|
|
13
31
|
/**
|
|
14
32
|
* This endpoint allows you to fetch badge(s) data.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const badges = await client.loyalty.badges.list();
|
|
37
|
+
* ```
|
|
15
38
|
*/
|
|
16
39
|
list(query?: BadgeListParams, options?: Core.RequestOptions): Core.APIPromise<BadgeListResponse>;
|
|
17
40
|
list(options?: Core.RequestOptions): Core.APIPromise<BadgeListResponse>;
|
|
18
41
|
/**
|
|
19
42
|
* This endpoint allows you to delete a badge.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const badge = await client.loyalty.badges.delete(
|
|
47
|
+
* '123e4567-e89b-12d3-a456-426614174333',
|
|
48
|
+
* );
|
|
49
|
+
* ```
|
|
20
50
|
*/
|
|
21
51
|
delete(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeDeleteResponse>;
|
|
22
52
|
/**
|
|
23
53
|
* This endpoint allows you to revoke a badge from an account
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const response = await client.loyalty.badges.revoke(
|
|
58
|
+
* '123e4567-e89b-12d3-a456-426614174333',
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
24
61
|
*/
|
|
25
62
|
revoke(id: string, body?: BadgeRevokeParams, options?: Core.RequestOptions): Core.APIPromise<BadgeRevokeResponse>;
|
|
26
63
|
revoke(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeRevokeResponse>;
|
|
27
64
|
/**
|
|
28
65
|
* This endpoint allows you to reward a badge for an account
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const response = await client.loyalty.badges.reward(
|
|
70
|
+
* '123e4567-e89b-12d3-a456-426614174333',
|
|
71
|
+
* );
|
|
72
|
+
* ```
|
|
29
73
|
*/
|
|
30
74
|
reward(id: string, body?: BadgeRewardParams, options?: Core.RequestOptions): Core.APIPromise<BadgeRewardResponse>;
|
|
31
75
|
reward(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeRewardResponse>;
|
|
@@ -54,10 +98,18 @@ export interface BadgeCreateResponse {
|
|
|
54
98
|
* The name of the badge
|
|
55
99
|
*/
|
|
56
100
|
name: string;
|
|
101
|
+
/**
|
|
102
|
+
* Array of data jobs associated with the badge
|
|
103
|
+
*/
|
|
104
|
+
dataJobs?: Array<BadgeCreateResponse.DataJob>;
|
|
57
105
|
/**
|
|
58
106
|
* Array of user badges
|
|
59
107
|
*/
|
|
60
|
-
|
|
108
|
+
loyaltyBadgeUsers?: Array<BadgeCreateResponse.LoyaltyBadgeUser>;
|
|
109
|
+
/**
|
|
110
|
+
* Array of loyalty rules associated with the badge
|
|
111
|
+
*/
|
|
112
|
+
loyaltyRules?: Array<BadgeCreateResponse.LoyaltyRule>;
|
|
61
113
|
}
|
|
62
114
|
export declare namespace BadgeCreateResponse {
|
|
63
115
|
/**
|
|
@@ -74,7 +126,7 @@ export declare namespace BadgeCreateResponse {
|
|
|
74
126
|
amount: number | null;
|
|
75
127
|
association: Array<LoyaltyCondition.Association>;
|
|
76
128
|
/**
|
|
77
|
-
*
|
|
129
|
+
* URL of the CSV file
|
|
78
130
|
*/
|
|
79
131
|
csvUrl: string | null;
|
|
80
132
|
/**
|
|
@@ -101,6 +153,10 @@ export declare namespace BadgeCreateResponse {
|
|
|
101
153
|
* The type of the condition
|
|
102
154
|
*/
|
|
103
155
|
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
156
|
+
/**
|
|
157
|
+
* Array of CSV files associated with the condition
|
|
158
|
+
*/
|
|
159
|
+
csvFiles?: Array<LoyaltyCondition.CsvFile>;
|
|
104
160
|
}
|
|
105
161
|
namespace LoyaltyCondition {
|
|
106
162
|
interface Association {
|
|
@@ -162,12 +218,56 @@ export declare namespace BadgeCreateResponse {
|
|
|
162
218
|
name: string;
|
|
163
219
|
}
|
|
164
220
|
}
|
|
221
|
+
interface CsvFile {
|
|
222
|
+
/**
|
|
223
|
+
* UUID of the CSV file (converted to lowercase)
|
|
224
|
+
*/
|
|
225
|
+
id: string;
|
|
226
|
+
/**
|
|
227
|
+
* The description of the CSV file
|
|
228
|
+
*/
|
|
229
|
+
description: string | null;
|
|
230
|
+
/**
|
|
231
|
+
* The name of the CSV file
|
|
232
|
+
*/
|
|
233
|
+
name: string | null;
|
|
234
|
+
/**
|
|
235
|
+
* The URL of the CSV file
|
|
236
|
+
*/
|
|
237
|
+
url: string | null;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
interface DataJob {
|
|
241
|
+
/**
|
|
242
|
+
* UUID of the data job (converted to lowercase)
|
|
243
|
+
*/
|
|
244
|
+
id: string;
|
|
245
|
+
/**
|
|
246
|
+
* The date and time the data job was created
|
|
247
|
+
*/
|
|
248
|
+
createdAt: string;
|
|
249
|
+
/**
|
|
250
|
+
* The status of the data job
|
|
251
|
+
*/
|
|
252
|
+
status: 'pending' | 'complete' | 'failed';
|
|
253
|
+
/**
|
|
254
|
+
* The date and time the data job was updated
|
|
255
|
+
*/
|
|
256
|
+
updatedAt: string;
|
|
257
|
+
/**
|
|
258
|
+
* The message associated with the data job
|
|
259
|
+
*/
|
|
260
|
+
message?: string | null;
|
|
165
261
|
}
|
|
166
262
|
interface LoyaltyBadgeUser {
|
|
167
263
|
/**
|
|
168
264
|
* UUID of the user badge (converted to lowercase)
|
|
169
265
|
*/
|
|
170
266
|
id: string;
|
|
267
|
+
/**
|
|
268
|
+
* The date and time the user badge was created
|
|
269
|
+
*/
|
|
270
|
+
createdAt: string;
|
|
171
271
|
/**
|
|
172
272
|
* UUID of the badge (converted to lowercase)
|
|
173
273
|
*/
|
|
@@ -180,6 +280,10 @@ export declare namespace BadgeCreateResponse {
|
|
|
180
280
|
* The status of the badge
|
|
181
281
|
*/
|
|
182
282
|
status: 'active' | 'inactive' | 'revoked';
|
|
283
|
+
/**
|
|
284
|
+
* The date and time the user badge was updated
|
|
285
|
+
*/
|
|
286
|
+
updatedAt: string;
|
|
183
287
|
/**
|
|
184
288
|
* UUID of the user (converted to lowercase)
|
|
185
289
|
*/
|
|
@@ -188,10 +292,43 @@ export declare namespace BadgeCreateResponse {
|
|
|
188
292
|
* UUID of the website (converted to lowercase)
|
|
189
293
|
*/
|
|
190
294
|
websiteId: string;
|
|
295
|
+
/**
|
|
296
|
+
* Whether the user has dismissed the badge in the UI
|
|
297
|
+
*/
|
|
298
|
+
dismissedInUi?: boolean;
|
|
191
299
|
/**
|
|
192
300
|
* Array of progress for the badge
|
|
193
301
|
*/
|
|
194
302
|
progress?: unknown;
|
|
303
|
+
/**
|
|
304
|
+
* User associated with the user badge
|
|
305
|
+
*/
|
|
306
|
+
user?: LoyaltyBadgeUser.User;
|
|
307
|
+
}
|
|
308
|
+
namespace LoyaltyBadgeUser {
|
|
309
|
+
/**
|
|
310
|
+
* User associated with the user badge
|
|
311
|
+
*/
|
|
312
|
+
interface User {
|
|
313
|
+
/**
|
|
314
|
+
* UUID of the user (converted to lowercase)
|
|
315
|
+
*/
|
|
316
|
+
id: string;
|
|
317
|
+
/**
|
|
318
|
+
* Wallet address of the user
|
|
319
|
+
*/
|
|
320
|
+
walletAddress: string;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
interface LoyaltyRule {
|
|
324
|
+
/**
|
|
325
|
+
* UUID of the loyalty rule (converted to lowercase)
|
|
326
|
+
*/
|
|
327
|
+
id: string;
|
|
328
|
+
/**
|
|
329
|
+
* The name of the loyalty rule
|
|
330
|
+
*/
|
|
331
|
+
name: string;
|
|
195
332
|
}
|
|
196
333
|
}
|
|
197
334
|
/**
|
|
@@ -218,10 +355,18 @@ export interface BadgeUpdateResponse {
|
|
|
218
355
|
* The name of the badge
|
|
219
356
|
*/
|
|
220
357
|
name: string;
|
|
358
|
+
/**
|
|
359
|
+
* Array of data jobs associated with the badge
|
|
360
|
+
*/
|
|
361
|
+
dataJobs?: Array<BadgeUpdateResponse.DataJob>;
|
|
221
362
|
/**
|
|
222
363
|
* Array of user badges
|
|
223
364
|
*/
|
|
224
|
-
|
|
365
|
+
loyaltyBadgeUsers?: Array<BadgeUpdateResponse.LoyaltyBadgeUser>;
|
|
366
|
+
/**
|
|
367
|
+
* Array of loyalty rules associated with the badge
|
|
368
|
+
*/
|
|
369
|
+
loyaltyRules?: Array<BadgeUpdateResponse.LoyaltyRule>;
|
|
225
370
|
}
|
|
226
371
|
export declare namespace BadgeUpdateResponse {
|
|
227
372
|
/**
|
|
@@ -238,7 +383,7 @@ export declare namespace BadgeUpdateResponse {
|
|
|
238
383
|
amount: number | null;
|
|
239
384
|
association: Array<LoyaltyCondition.Association>;
|
|
240
385
|
/**
|
|
241
|
-
*
|
|
386
|
+
* URL of the CSV file
|
|
242
387
|
*/
|
|
243
388
|
csvUrl: string | null;
|
|
244
389
|
/**
|
|
@@ -265,6 +410,10 @@ export declare namespace BadgeUpdateResponse {
|
|
|
265
410
|
* The type of the condition
|
|
266
411
|
*/
|
|
267
412
|
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
413
|
+
/**
|
|
414
|
+
* Array of CSV files associated with the condition
|
|
415
|
+
*/
|
|
416
|
+
csvFiles?: Array<LoyaltyCondition.CsvFile>;
|
|
268
417
|
}
|
|
269
418
|
namespace LoyaltyCondition {
|
|
270
419
|
interface Association {
|
|
@@ -326,12 +475,56 @@ export declare namespace BadgeUpdateResponse {
|
|
|
326
475
|
name: string;
|
|
327
476
|
}
|
|
328
477
|
}
|
|
478
|
+
interface CsvFile {
|
|
479
|
+
/**
|
|
480
|
+
* UUID of the CSV file (converted to lowercase)
|
|
481
|
+
*/
|
|
482
|
+
id: string;
|
|
483
|
+
/**
|
|
484
|
+
* The description of the CSV file
|
|
485
|
+
*/
|
|
486
|
+
description: string | null;
|
|
487
|
+
/**
|
|
488
|
+
* The name of the CSV file
|
|
489
|
+
*/
|
|
490
|
+
name: string | null;
|
|
491
|
+
/**
|
|
492
|
+
* The URL of the CSV file
|
|
493
|
+
*/
|
|
494
|
+
url: string | null;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
interface DataJob {
|
|
498
|
+
/**
|
|
499
|
+
* UUID of the data job (converted to lowercase)
|
|
500
|
+
*/
|
|
501
|
+
id: string;
|
|
502
|
+
/**
|
|
503
|
+
* The date and time the data job was created
|
|
504
|
+
*/
|
|
505
|
+
createdAt: string;
|
|
506
|
+
/**
|
|
507
|
+
* The status of the data job
|
|
508
|
+
*/
|
|
509
|
+
status: 'pending' | 'complete' | 'failed';
|
|
510
|
+
/**
|
|
511
|
+
* The date and time the data job was updated
|
|
512
|
+
*/
|
|
513
|
+
updatedAt: string;
|
|
514
|
+
/**
|
|
515
|
+
* The message associated with the data job
|
|
516
|
+
*/
|
|
517
|
+
message?: string | null;
|
|
329
518
|
}
|
|
330
519
|
interface LoyaltyBadgeUser {
|
|
331
520
|
/**
|
|
332
521
|
* UUID of the user badge (converted to lowercase)
|
|
333
522
|
*/
|
|
334
523
|
id: string;
|
|
524
|
+
/**
|
|
525
|
+
* The date and time the user badge was created
|
|
526
|
+
*/
|
|
527
|
+
createdAt: string;
|
|
335
528
|
/**
|
|
336
529
|
* UUID of the badge (converted to lowercase)
|
|
337
530
|
*/
|
|
@@ -344,6 +537,10 @@ export declare namespace BadgeUpdateResponse {
|
|
|
344
537
|
* The status of the badge
|
|
345
538
|
*/
|
|
346
539
|
status: 'active' | 'inactive' | 'revoked';
|
|
540
|
+
/**
|
|
541
|
+
* The date and time the user badge was updated
|
|
542
|
+
*/
|
|
543
|
+
updatedAt: string;
|
|
347
544
|
/**
|
|
348
545
|
* UUID of the user (converted to lowercase)
|
|
349
546
|
*/
|
|
@@ -352,10 +549,43 @@ export declare namespace BadgeUpdateResponse {
|
|
|
352
549
|
* UUID of the website (converted to lowercase)
|
|
353
550
|
*/
|
|
354
551
|
websiteId: string;
|
|
552
|
+
/**
|
|
553
|
+
* Whether the user has dismissed the badge in the UI
|
|
554
|
+
*/
|
|
555
|
+
dismissedInUi?: boolean;
|
|
355
556
|
/**
|
|
356
557
|
* Array of progress for the badge
|
|
357
558
|
*/
|
|
358
559
|
progress?: unknown;
|
|
560
|
+
/**
|
|
561
|
+
* User associated with the user badge
|
|
562
|
+
*/
|
|
563
|
+
user?: LoyaltyBadgeUser.User;
|
|
564
|
+
}
|
|
565
|
+
namespace LoyaltyBadgeUser {
|
|
566
|
+
/**
|
|
567
|
+
* User associated with the user badge
|
|
568
|
+
*/
|
|
569
|
+
interface User {
|
|
570
|
+
/**
|
|
571
|
+
* UUID of the user (converted to lowercase)
|
|
572
|
+
*/
|
|
573
|
+
id: string;
|
|
574
|
+
/**
|
|
575
|
+
* Wallet address of the user
|
|
576
|
+
*/
|
|
577
|
+
walletAddress: string;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
interface LoyaltyRule {
|
|
581
|
+
/**
|
|
582
|
+
* UUID of the loyalty rule (converted to lowercase)
|
|
583
|
+
*/
|
|
584
|
+
id: string;
|
|
585
|
+
/**
|
|
586
|
+
* The name of the loyalty rule
|
|
587
|
+
*/
|
|
588
|
+
name: string;
|
|
359
589
|
}
|
|
360
590
|
}
|
|
361
591
|
/**
|
|
@@ -382,10 +612,18 @@ export interface BadgeListResponse {
|
|
|
382
612
|
* The name of the badge
|
|
383
613
|
*/
|
|
384
614
|
name: string;
|
|
615
|
+
/**
|
|
616
|
+
* Array of data jobs associated with the badge
|
|
617
|
+
*/
|
|
618
|
+
dataJobs?: Array<BadgeListResponse.DataJob>;
|
|
385
619
|
/**
|
|
386
620
|
* Array of user badges
|
|
387
621
|
*/
|
|
388
|
-
|
|
622
|
+
loyaltyBadgeUsers?: Array<BadgeListResponse.LoyaltyBadgeUser>;
|
|
623
|
+
/**
|
|
624
|
+
* Array of loyalty rules associated with the badge
|
|
625
|
+
*/
|
|
626
|
+
loyaltyRules?: Array<BadgeListResponse.LoyaltyRule>;
|
|
389
627
|
}
|
|
390
628
|
export declare namespace BadgeListResponse {
|
|
391
629
|
/**
|
|
@@ -402,7 +640,7 @@ export declare namespace BadgeListResponse {
|
|
|
402
640
|
amount: number | null;
|
|
403
641
|
association: Array<LoyaltyCondition.Association>;
|
|
404
642
|
/**
|
|
405
|
-
*
|
|
643
|
+
* URL of the CSV file
|
|
406
644
|
*/
|
|
407
645
|
csvUrl: string | null;
|
|
408
646
|
/**
|
|
@@ -429,6 +667,10 @@ export declare namespace BadgeListResponse {
|
|
|
429
667
|
* The type of the condition
|
|
430
668
|
*/
|
|
431
669
|
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
670
|
+
/**
|
|
671
|
+
* Array of CSV files associated with the condition
|
|
672
|
+
*/
|
|
673
|
+
csvFiles?: Array<LoyaltyCondition.CsvFile>;
|
|
432
674
|
}
|
|
433
675
|
namespace LoyaltyCondition {
|
|
434
676
|
interface Association {
|
|
@@ -490,12 +732,56 @@ export declare namespace BadgeListResponse {
|
|
|
490
732
|
name: string;
|
|
491
733
|
}
|
|
492
734
|
}
|
|
735
|
+
interface CsvFile {
|
|
736
|
+
/**
|
|
737
|
+
* UUID of the CSV file (converted to lowercase)
|
|
738
|
+
*/
|
|
739
|
+
id: string;
|
|
740
|
+
/**
|
|
741
|
+
* The description of the CSV file
|
|
742
|
+
*/
|
|
743
|
+
description: string | null;
|
|
744
|
+
/**
|
|
745
|
+
* The name of the CSV file
|
|
746
|
+
*/
|
|
747
|
+
name: string | null;
|
|
748
|
+
/**
|
|
749
|
+
* The URL of the CSV file
|
|
750
|
+
*/
|
|
751
|
+
url: string | null;
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
interface DataJob {
|
|
755
|
+
/**
|
|
756
|
+
* UUID of the data job (converted to lowercase)
|
|
757
|
+
*/
|
|
758
|
+
id: string;
|
|
759
|
+
/**
|
|
760
|
+
* The date and time the data job was created
|
|
761
|
+
*/
|
|
762
|
+
createdAt: string;
|
|
763
|
+
/**
|
|
764
|
+
* The status of the data job
|
|
765
|
+
*/
|
|
766
|
+
status: 'pending' | 'complete' | 'failed';
|
|
767
|
+
/**
|
|
768
|
+
* The date and time the data job was updated
|
|
769
|
+
*/
|
|
770
|
+
updatedAt: string;
|
|
771
|
+
/**
|
|
772
|
+
* The message associated with the data job
|
|
773
|
+
*/
|
|
774
|
+
message?: string | null;
|
|
493
775
|
}
|
|
494
776
|
interface LoyaltyBadgeUser {
|
|
495
777
|
/**
|
|
496
778
|
* UUID of the user badge (converted to lowercase)
|
|
497
779
|
*/
|
|
498
780
|
id: string;
|
|
781
|
+
/**
|
|
782
|
+
* The date and time the user badge was created
|
|
783
|
+
*/
|
|
784
|
+
createdAt: string;
|
|
499
785
|
/**
|
|
500
786
|
* UUID of the badge (converted to lowercase)
|
|
501
787
|
*/
|
|
@@ -508,6 +794,10 @@ export declare namespace BadgeListResponse {
|
|
|
508
794
|
* The status of the badge
|
|
509
795
|
*/
|
|
510
796
|
status: 'active' | 'inactive' | 'revoked';
|
|
797
|
+
/**
|
|
798
|
+
* The date and time the user badge was updated
|
|
799
|
+
*/
|
|
800
|
+
updatedAt: string;
|
|
511
801
|
/**
|
|
512
802
|
* UUID of the user (converted to lowercase)
|
|
513
803
|
*/
|
|
@@ -516,10 +806,43 @@ export declare namespace BadgeListResponse {
|
|
|
516
806
|
* UUID of the website (converted to lowercase)
|
|
517
807
|
*/
|
|
518
808
|
websiteId: string;
|
|
809
|
+
/**
|
|
810
|
+
* Whether the user has dismissed the badge in the UI
|
|
811
|
+
*/
|
|
812
|
+
dismissedInUi?: boolean;
|
|
519
813
|
/**
|
|
520
814
|
* Array of progress for the badge
|
|
521
815
|
*/
|
|
522
816
|
progress?: unknown;
|
|
817
|
+
/**
|
|
818
|
+
* User associated with the user badge
|
|
819
|
+
*/
|
|
820
|
+
user?: LoyaltyBadgeUser.User;
|
|
821
|
+
}
|
|
822
|
+
namespace LoyaltyBadgeUser {
|
|
823
|
+
/**
|
|
824
|
+
* User associated with the user badge
|
|
825
|
+
*/
|
|
826
|
+
interface User {
|
|
827
|
+
/**
|
|
828
|
+
* UUID of the user (converted to lowercase)
|
|
829
|
+
*/
|
|
830
|
+
id: string;
|
|
831
|
+
/**
|
|
832
|
+
* Wallet address of the user
|
|
833
|
+
*/
|
|
834
|
+
walletAddress: string;
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
interface LoyaltyRule {
|
|
838
|
+
/**
|
|
839
|
+
* UUID of the loyalty rule (converted to lowercase)
|
|
840
|
+
*/
|
|
841
|
+
id: string;
|
|
842
|
+
/**
|
|
843
|
+
* The name of the loyalty rule
|
|
844
|
+
*/
|
|
845
|
+
name: string;
|
|
523
846
|
}
|
|
524
847
|
}
|
|
525
848
|
/**
|
|
@@ -546,10 +869,18 @@ export interface BadgeDeleteResponse {
|
|
|
546
869
|
* The name of the badge
|
|
547
870
|
*/
|
|
548
871
|
name: string;
|
|
872
|
+
/**
|
|
873
|
+
* Array of data jobs associated with the badge
|
|
874
|
+
*/
|
|
875
|
+
dataJobs?: Array<BadgeDeleteResponse.DataJob>;
|
|
549
876
|
/**
|
|
550
877
|
* Array of user badges
|
|
551
878
|
*/
|
|
552
|
-
|
|
879
|
+
loyaltyBadgeUsers?: Array<BadgeDeleteResponse.LoyaltyBadgeUser>;
|
|
880
|
+
/**
|
|
881
|
+
* Array of loyalty rules associated with the badge
|
|
882
|
+
*/
|
|
883
|
+
loyaltyRules?: Array<BadgeDeleteResponse.LoyaltyRule>;
|
|
553
884
|
}
|
|
554
885
|
export declare namespace BadgeDeleteResponse {
|
|
555
886
|
/**
|
|
@@ -566,7 +897,7 @@ export declare namespace BadgeDeleteResponse {
|
|
|
566
897
|
amount: number | null;
|
|
567
898
|
association: Array<LoyaltyCondition.Association>;
|
|
568
899
|
/**
|
|
569
|
-
*
|
|
900
|
+
* URL of the CSV file
|
|
570
901
|
*/
|
|
571
902
|
csvUrl: string | null;
|
|
572
903
|
/**
|
|
@@ -593,6 +924,10 @@ export declare namespace BadgeDeleteResponse {
|
|
|
593
924
|
* The type of the condition
|
|
594
925
|
*/
|
|
595
926
|
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
927
|
+
/**
|
|
928
|
+
* Array of CSV files associated with the condition
|
|
929
|
+
*/
|
|
930
|
+
csvFiles?: Array<LoyaltyCondition.CsvFile>;
|
|
596
931
|
}
|
|
597
932
|
namespace LoyaltyCondition {
|
|
598
933
|
interface Association {
|
|
@@ -654,12 +989,56 @@ export declare namespace BadgeDeleteResponse {
|
|
|
654
989
|
name: string;
|
|
655
990
|
}
|
|
656
991
|
}
|
|
992
|
+
interface CsvFile {
|
|
993
|
+
/**
|
|
994
|
+
* UUID of the CSV file (converted to lowercase)
|
|
995
|
+
*/
|
|
996
|
+
id: string;
|
|
997
|
+
/**
|
|
998
|
+
* The description of the CSV file
|
|
999
|
+
*/
|
|
1000
|
+
description: string | null;
|
|
1001
|
+
/**
|
|
1002
|
+
* The name of the CSV file
|
|
1003
|
+
*/
|
|
1004
|
+
name: string | null;
|
|
1005
|
+
/**
|
|
1006
|
+
* The URL of the CSV file
|
|
1007
|
+
*/
|
|
1008
|
+
url: string | null;
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
interface DataJob {
|
|
1012
|
+
/**
|
|
1013
|
+
* UUID of the data job (converted to lowercase)
|
|
1014
|
+
*/
|
|
1015
|
+
id: string;
|
|
1016
|
+
/**
|
|
1017
|
+
* The date and time the data job was created
|
|
1018
|
+
*/
|
|
1019
|
+
createdAt: string;
|
|
1020
|
+
/**
|
|
1021
|
+
* The status of the data job
|
|
1022
|
+
*/
|
|
1023
|
+
status: 'pending' | 'complete' | 'failed';
|
|
1024
|
+
/**
|
|
1025
|
+
* The date and time the data job was updated
|
|
1026
|
+
*/
|
|
1027
|
+
updatedAt: string;
|
|
1028
|
+
/**
|
|
1029
|
+
* The message associated with the data job
|
|
1030
|
+
*/
|
|
1031
|
+
message?: string | null;
|
|
657
1032
|
}
|
|
658
1033
|
interface LoyaltyBadgeUser {
|
|
659
1034
|
/**
|
|
660
1035
|
* UUID of the user badge (converted to lowercase)
|
|
661
1036
|
*/
|
|
662
1037
|
id: string;
|
|
1038
|
+
/**
|
|
1039
|
+
* The date and time the user badge was created
|
|
1040
|
+
*/
|
|
1041
|
+
createdAt: string;
|
|
663
1042
|
/**
|
|
664
1043
|
* UUID of the badge (converted to lowercase)
|
|
665
1044
|
*/
|
|
@@ -672,6 +1051,10 @@ export declare namespace BadgeDeleteResponse {
|
|
|
672
1051
|
* The status of the badge
|
|
673
1052
|
*/
|
|
674
1053
|
status: 'active' | 'inactive' | 'revoked';
|
|
1054
|
+
/**
|
|
1055
|
+
* The date and time the user badge was updated
|
|
1056
|
+
*/
|
|
1057
|
+
updatedAt: string;
|
|
675
1058
|
/**
|
|
676
1059
|
* UUID of the user (converted to lowercase)
|
|
677
1060
|
*/
|
|
@@ -680,10 +1063,43 @@ export declare namespace BadgeDeleteResponse {
|
|
|
680
1063
|
* UUID of the website (converted to lowercase)
|
|
681
1064
|
*/
|
|
682
1065
|
websiteId: string;
|
|
1066
|
+
/**
|
|
1067
|
+
* Whether the user has dismissed the badge in the UI
|
|
1068
|
+
*/
|
|
1069
|
+
dismissedInUi?: boolean;
|
|
683
1070
|
/**
|
|
684
1071
|
* Array of progress for the badge
|
|
685
1072
|
*/
|
|
686
1073
|
progress?: unknown;
|
|
1074
|
+
/**
|
|
1075
|
+
* User associated with the user badge
|
|
1076
|
+
*/
|
|
1077
|
+
user?: LoyaltyBadgeUser.User;
|
|
1078
|
+
}
|
|
1079
|
+
namespace LoyaltyBadgeUser {
|
|
1080
|
+
/**
|
|
1081
|
+
* User associated with the user badge
|
|
1082
|
+
*/
|
|
1083
|
+
interface User {
|
|
1084
|
+
/**
|
|
1085
|
+
* UUID of the user (converted to lowercase)
|
|
1086
|
+
*/
|
|
1087
|
+
id: string;
|
|
1088
|
+
/**
|
|
1089
|
+
* Wallet address of the user
|
|
1090
|
+
*/
|
|
1091
|
+
walletAddress: string;
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
interface LoyaltyRule {
|
|
1095
|
+
/**
|
|
1096
|
+
* UUID of the loyalty rule (converted to lowercase)
|
|
1097
|
+
*/
|
|
1098
|
+
id: string;
|
|
1099
|
+
/**
|
|
1100
|
+
* The name of the loyalty rule
|
|
1101
|
+
*/
|
|
1102
|
+
name: string;
|
|
687
1103
|
}
|
|
688
1104
|
}
|
|
689
1105
|
/**
|
|
@@ -723,6 +1139,10 @@ export declare namespace BadgeRewardResponse {
|
|
|
723
1139
|
}
|
|
724
1140
|
}
|
|
725
1141
|
export interface BadgeCreateParams {
|
|
1142
|
+
/**
|
|
1143
|
+
* Array of conditions for the badge
|
|
1144
|
+
*/
|
|
1145
|
+
conditions: Array<BadgeCreateParams.Condition>;
|
|
726
1146
|
/**
|
|
727
1147
|
* The URL of the badge image
|
|
728
1148
|
*/
|
|
@@ -735,25 +1155,18 @@ export interface BadgeCreateParams {
|
|
|
735
1155
|
* UUID of the organization (optional, converted to lowercase)
|
|
736
1156
|
*/
|
|
737
1157
|
organizationId: string;
|
|
738
|
-
/**
|
|
739
|
-
* Array of rules for the badge
|
|
740
|
-
*/
|
|
741
|
-
rules: Array<BadgeCreateParams.Rule>;
|
|
742
1158
|
/**
|
|
743
1159
|
* UUID of the website (optional, converted to lowercase)
|
|
744
1160
|
*/
|
|
745
1161
|
websiteId: string;
|
|
1162
|
+
csvFiles?: Array<BadgeCreateParams.CsvFile>;
|
|
746
1163
|
/**
|
|
747
1164
|
* The description of the badge
|
|
748
1165
|
*/
|
|
749
1166
|
description?: string;
|
|
750
1167
|
}
|
|
751
1168
|
export declare namespace BadgeCreateParams {
|
|
752
|
-
interface
|
|
753
|
-
/**
|
|
754
|
-
* The type of rule
|
|
755
|
-
*/
|
|
756
|
-
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
1169
|
+
interface Condition {
|
|
757
1170
|
/**
|
|
758
1171
|
* The amount of the rule
|
|
759
1172
|
*/
|
|
@@ -781,7 +1194,7 @@ export declare namespace BadgeCreateParams {
|
|
|
781
1194
|
/**
|
|
782
1195
|
* UUID of the loyalty rule chain (optional, converted to lowercase)
|
|
783
1196
|
*/
|
|
784
|
-
loyaltyRuleChainId?: string;
|
|
1197
|
+
loyaltyRuleChainId?: string | null;
|
|
785
1198
|
/**
|
|
786
1199
|
* Array of UUIDs of the rule group (optional, converted to lowercase)
|
|
787
1200
|
*/
|
|
@@ -798,9 +1211,19 @@ export declare namespace BadgeCreateParams {
|
|
|
798
1211
|
* The number of rules that need to be fulfilled to satisfy the condition
|
|
799
1212
|
*/
|
|
800
1213
|
requiredCount?: number | null;
|
|
1214
|
+
/**
|
|
1215
|
+
* The type of rule
|
|
1216
|
+
*/
|
|
1217
|
+
type?: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
1218
|
+
}
|
|
1219
|
+
interface CsvFile {
|
|
1220
|
+
src: string;
|
|
1221
|
+
description?: string;
|
|
1222
|
+
name?: string;
|
|
801
1223
|
}
|
|
802
1224
|
}
|
|
803
1225
|
export interface BadgeUpdateParams {
|
|
1226
|
+
csvFiles?: Array<BadgeUpdateParams.CsvFile>;
|
|
804
1227
|
/**
|
|
805
1228
|
* The description of the badge
|
|
806
1229
|
*/
|
|
@@ -814,11 +1237,18 @@ export interface BadgeUpdateParams {
|
|
|
814
1237
|
*/
|
|
815
1238
|
name?: string;
|
|
816
1239
|
}
|
|
1240
|
+
export declare namespace BadgeUpdateParams {
|
|
1241
|
+
interface CsvFile {
|
|
1242
|
+
src: string;
|
|
1243
|
+
description?: string;
|
|
1244
|
+
name?: string;
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
817
1247
|
export interface BadgeListParams {
|
|
818
1248
|
/**
|
|
819
1249
|
* Array of badge IDs (converted to lowercase) to fetch
|
|
820
1250
|
*/
|
|
821
|
-
badgeIds?: Array<string>;
|
|
1251
|
+
badgeIds?: string | Array<string>;
|
|
822
1252
|
/**
|
|
823
1253
|
* Include deleted badges in the response
|
|
824
1254
|
*/
|
|
@@ -836,15 +1266,31 @@ export interface BadgeListParams {
|
|
|
836
1266
|
*/
|
|
837
1267
|
startingAfter?: string;
|
|
838
1268
|
/**
|
|
839
|
-
*
|
|
1269
|
+
* External identifier of the user group
|
|
840
1270
|
*/
|
|
841
|
-
|
|
1271
|
+
userGroupExternalIdentifier?: string;
|
|
1272
|
+
/**
|
|
1273
|
+
* UUID of the user group
|
|
1274
|
+
*/
|
|
1275
|
+
userGroupId?: string;
|
|
1276
|
+
/**
|
|
1277
|
+
* UUID of the user, or array of UUID.
|
|
1278
|
+
*/
|
|
1279
|
+
userId?: string | Array<string>;
|
|
1280
|
+
/**
|
|
1281
|
+
* Wallet Address of the user, or array of wallet addresses.
|
|
1282
|
+
*/
|
|
1283
|
+
walletAddress?: string | Array<string>;
|
|
842
1284
|
/**
|
|
843
1285
|
* UUID of the website (optional, converted to lowercase)
|
|
844
1286
|
*/
|
|
845
1287
|
websiteId?: string;
|
|
846
1288
|
}
|
|
847
1289
|
export interface BadgeRevokeParams {
|
|
1290
|
+
/**
|
|
1291
|
+
* Status of the badge
|
|
1292
|
+
*/
|
|
1293
|
+
status?: 'active' | 'inactive' | 'revoked';
|
|
848
1294
|
/**
|
|
849
1295
|
* UUID of the user (converted to lowercase)
|
|
850
1296
|
*/
|
|
@@ -855,6 +1301,10 @@ export interface BadgeRevokeParams {
|
|
|
855
1301
|
walletAddress?: string;
|
|
856
1302
|
}
|
|
857
1303
|
export interface BadgeRewardParams {
|
|
1304
|
+
/**
|
|
1305
|
+
* Status of the badge
|
|
1306
|
+
*/
|
|
1307
|
+
status?: 'active' | 'inactive' | 'revoked';
|
|
858
1308
|
/**
|
|
859
1309
|
* UUID of the user (converted to lowercase)
|
|
860
1310
|
*/
|