@snagsolutions/sdk 0.1.0-alpha.18 → 0.1.0-alpha.180
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 +1472 -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 +7 -4
- package/index.d.ts +7 -4
- package/index.d.ts.map +1 -1
- package/index.js +8 -4
- package/index.js.map +1 -1
- package/index.mjs +8 -4
- 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 +122 -0
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/values.js +49 -0
- package/resources/auctions/website-user-attributes/values.js.map +1 -0
- package/resources/auctions/website-user-attributes/values.mjs +45 -0
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +132 -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 +76 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +49 -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 +17 -4
- 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 +2 -2
- 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 +1 -1
- 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 +60 -16
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +14 -0
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +14 -0
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +504 -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 -4
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js +5 -5
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +3 -3
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +11 -11
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +6 -6
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +7 -7
- 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 +2630 -8
- 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 +279 -64
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rule-groups.js +38 -2
- package/resources/loyalty/rule-groups.js.map +1 -1
- package/resources/loyalty/rule-groups.mjs +38 -2
- package/resources/loyalty/rule-groups.mjs.map +1 -1
- package/resources/loyalty/rules.d.ts +1902 -269
- 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 +120 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.js +30 -0
- package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.mjs +26 -0
- package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
- package/resources/loyalty/transactions/transactions.d.ts +410 -0
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions/transactions.js +76 -0
- package/resources/loyalty/transactions/transactions.js.map +1 -0
- package/resources/loyalty/transactions/transactions.mjs +49 -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 +34 -3
- 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 +159 -35
- 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/website-collections.d.ts +22 -1
- package/resources/websites/website-collections.d.ts.map +1 -1
- package/resources/websites/website-collections.js +21 -0
- package/resources/websites/website-collections.js.map +1 -1
- package/resources/websites/website-collections.mjs +21 -0
- 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 +12 -0
- package/resources/websites/websites.d.ts.map +1 -1
- package/resources/websites/websites.js +7 -0
- package/resources/websites/websites.js.map +1 -1
- package/resources/websites/websites.mjs +7 -0
- package/resources/websites/websites.mjs.map +1 -1
- package/src/core.ts +39 -16
- package/src/index.ts +29 -2
- package/src/resource.ts +1 -1
- package/src/resources/assets.ts +18 -3
- package/src/resources/auctions/auctions.ts +436 -0
- package/src/resources/auctions/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/values.ts +165 -0
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +207 -0
- package/src/resources/auctions/website-user-attributes.ts +3 -0
- package/src/resources/auctions.ts +1 -207
- package/src/resources/auth.ts +21 -5
- package/src/resources/index.ts +11 -1
- package/src/resources/loyalty/account-streaks.ts +110 -0
- package/src/resources/loyalty/accounts.ts +65 -18
- package/src/resources/loyalty/badges.ts +607 -24
- package/src/resources/loyalty/currencies.ts +19 -0
- package/src/resources/loyalty/index.ts +19 -3
- package/src/resources/loyalty/loyalty.ts +39 -15
- 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 +3802 -100
- package/src/resources/loyalty/rule-groups.ts +483 -76
- package/src/resources/loyalty/rules.ts +2925 -310
- package/src/resources/loyalty/transactions/index.ts +18 -0
- package/src/resources/loyalty/transactions/rule-statuses.ts +178 -0
- package/src/resources/loyalty/transactions/transactions.ts +681 -0
- package/src/resources/loyalty/transactions.ts +1 -330
- package/src/resources/minting.ts +22 -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 +57 -3
- package/src/resources/users/users.ts +209 -38
- package/src/resources/websites/website-collections.ts +39 -1
- package/src/resources/websites/website-user-roles.ts +23 -0
- package/src/resources/websites/websites.ts +12 -0
- 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
- package/resources/loyalty/rule-chains.d.ts +0 -34
- package/resources/loyalty/rule-chains.d.ts.map +0 -1
- package/resources/loyalty/rule-chains.js +0 -15
- package/resources/loyalty/rule-chains.js.map +0 -1
- package/resources/loyalty/rule-chains.mjs +0 -11
- package/resources/loyalty/rule-chains.mjs.map +0 -1
- package/src/resources/loyalty/rule-chains.ts +0 -45
|
@@ -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>;
|
|
@@ -38,6 +82,10 @@ export interface BadgeCreateResponse {
|
|
|
38
82
|
* UUID of the badge (converted to lowercase)
|
|
39
83
|
*/
|
|
40
84
|
id: string;
|
|
85
|
+
/**
|
|
86
|
+
* The date and time the badge was created
|
|
87
|
+
*/
|
|
88
|
+
createdAt: string;
|
|
41
89
|
/**
|
|
42
90
|
* The description of the badge
|
|
43
91
|
*/
|
|
@@ -54,10 +102,22 @@ export interface BadgeCreateResponse {
|
|
|
54
102
|
* The name of the badge
|
|
55
103
|
*/
|
|
56
104
|
name: string;
|
|
105
|
+
/**
|
|
106
|
+
* The date and time the badge was updated
|
|
107
|
+
*/
|
|
108
|
+
updatedAt: string;
|
|
109
|
+
/**
|
|
110
|
+
* Array of data jobs associated with the badge
|
|
111
|
+
*/
|
|
112
|
+
dataJobs?: Array<BadgeCreateResponse.DataJob>;
|
|
57
113
|
/**
|
|
58
114
|
* Array of user badges
|
|
59
115
|
*/
|
|
60
|
-
|
|
116
|
+
loyaltyBadgeUsers?: Array<BadgeCreateResponse.LoyaltyBadgeUser>;
|
|
117
|
+
/**
|
|
118
|
+
* Array of loyalty rules associated with the badge
|
|
119
|
+
*/
|
|
120
|
+
loyaltyRules?: Array<BadgeCreateResponse.LoyaltyRule>;
|
|
61
121
|
}
|
|
62
122
|
export declare namespace BadgeCreateResponse {
|
|
63
123
|
/**
|
|
@@ -74,7 +134,7 @@ export declare namespace BadgeCreateResponse {
|
|
|
74
134
|
amount: number | null;
|
|
75
135
|
association: Array<LoyaltyCondition.Association>;
|
|
76
136
|
/**
|
|
77
|
-
*
|
|
137
|
+
* URL of the CSV file
|
|
78
138
|
*/
|
|
79
139
|
csvUrl: string | null;
|
|
80
140
|
/**
|
|
@@ -101,6 +161,10 @@ export declare namespace BadgeCreateResponse {
|
|
|
101
161
|
* The type of the condition
|
|
102
162
|
*/
|
|
103
163
|
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
164
|
+
/**
|
|
165
|
+
* Array of CSV files associated with the condition
|
|
166
|
+
*/
|
|
167
|
+
csvFiles?: Array<LoyaltyCondition.CsvFile>;
|
|
104
168
|
}
|
|
105
169
|
namespace LoyaltyCondition {
|
|
106
170
|
interface Association {
|
|
@@ -162,12 +226,56 @@ export declare namespace BadgeCreateResponse {
|
|
|
162
226
|
name: string;
|
|
163
227
|
}
|
|
164
228
|
}
|
|
229
|
+
interface CsvFile {
|
|
230
|
+
/**
|
|
231
|
+
* UUID of the CSV file (converted to lowercase)
|
|
232
|
+
*/
|
|
233
|
+
id: string;
|
|
234
|
+
/**
|
|
235
|
+
* The description of the CSV file
|
|
236
|
+
*/
|
|
237
|
+
description: string | null;
|
|
238
|
+
/**
|
|
239
|
+
* The name of the CSV file
|
|
240
|
+
*/
|
|
241
|
+
name: string | null;
|
|
242
|
+
/**
|
|
243
|
+
* The URL of the CSV file
|
|
244
|
+
*/
|
|
245
|
+
url: string | null;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
interface DataJob {
|
|
249
|
+
/**
|
|
250
|
+
* UUID of the data job (converted to lowercase)
|
|
251
|
+
*/
|
|
252
|
+
id: string;
|
|
253
|
+
/**
|
|
254
|
+
* The date and time the data job was created
|
|
255
|
+
*/
|
|
256
|
+
createdAt: string;
|
|
257
|
+
/**
|
|
258
|
+
* The status of the data job
|
|
259
|
+
*/
|
|
260
|
+
status: 'pending' | 'complete' | 'failed';
|
|
261
|
+
/**
|
|
262
|
+
* The date and time the data job was updated
|
|
263
|
+
*/
|
|
264
|
+
updatedAt: string;
|
|
265
|
+
/**
|
|
266
|
+
* The message associated with the data job
|
|
267
|
+
*/
|
|
268
|
+
message?: string | null;
|
|
165
269
|
}
|
|
166
270
|
interface LoyaltyBadgeUser {
|
|
167
271
|
/**
|
|
168
272
|
* UUID of the user badge (converted to lowercase)
|
|
169
273
|
*/
|
|
170
274
|
id: string;
|
|
275
|
+
/**
|
|
276
|
+
* The date and time the user badge was created
|
|
277
|
+
*/
|
|
278
|
+
createdAt: string;
|
|
171
279
|
/**
|
|
172
280
|
* UUID of the badge (converted to lowercase)
|
|
173
281
|
*/
|
|
@@ -180,6 +288,10 @@ export declare namespace BadgeCreateResponse {
|
|
|
180
288
|
* The status of the badge
|
|
181
289
|
*/
|
|
182
290
|
status: 'active' | 'inactive' | 'revoked';
|
|
291
|
+
/**
|
|
292
|
+
* The date and time the user badge was updated
|
|
293
|
+
*/
|
|
294
|
+
updatedAt: string;
|
|
183
295
|
/**
|
|
184
296
|
* UUID of the user (converted to lowercase)
|
|
185
297
|
*/
|
|
@@ -188,10 +300,43 @@ export declare namespace BadgeCreateResponse {
|
|
|
188
300
|
* UUID of the website (converted to lowercase)
|
|
189
301
|
*/
|
|
190
302
|
websiteId: string;
|
|
303
|
+
/**
|
|
304
|
+
* Whether the user has dismissed the badge in the UI
|
|
305
|
+
*/
|
|
306
|
+
dismissedInUi?: boolean;
|
|
191
307
|
/**
|
|
192
308
|
* Array of progress for the badge
|
|
193
309
|
*/
|
|
194
310
|
progress?: unknown;
|
|
311
|
+
/**
|
|
312
|
+
* User associated with the user badge
|
|
313
|
+
*/
|
|
314
|
+
user?: LoyaltyBadgeUser.User;
|
|
315
|
+
}
|
|
316
|
+
namespace LoyaltyBadgeUser {
|
|
317
|
+
/**
|
|
318
|
+
* User associated with the user badge
|
|
319
|
+
*/
|
|
320
|
+
interface User {
|
|
321
|
+
/**
|
|
322
|
+
* UUID of the user (converted to lowercase)
|
|
323
|
+
*/
|
|
324
|
+
id: string;
|
|
325
|
+
/**
|
|
326
|
+
* Wallet address of the user
|
|
327
|
+
*/
|
|
328
|
+
walletAddress: string;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
interface LoyaltyRule {
|
|
332
|
+
/**
|
|
333
|
+
* UUID of the loyalty rule (converted to lowercase)
|
|
334
|
+
*/
|
|
335
|
+
id: string;
|
|
336
|
+
/**
|
|
337
|
+
* The name of the loyalty rule
|
|
338
|
+
*/
|
|
339
|
+
name: string;
|
|
195
340
|
}
|
|
196
341
|
}
|
|
197
342
|
/**
|
|
@@ -202,6 +347,10 @@ export interface BadgeUpdateResponse {
|
|
|
202
347
|
* UUID of the badge (converted to lowercase)
|
|
203
348
|
*/
|
|
204
349
|
id: string;
|
|
350
|
+
/**
|
|
351
|
+
* The date and time the badge was created
|
|
352
|
+
*/
|
|
353
|
+
createdAt: string;
|
|
205
354
|
/**
|
|
206
355
|
* The description of the badge
|
|
207
356
|
*/
|
|
@@ -218,10 +367,22 @@ export interface BadgeUpdateResponse {
|
|
|
218
367
|
* The name of the badge
|
|
219
368
|
*/
|
|
220
369
|
name: string;
|
|
370
|
+
/**
|
|
371
|
+
* The date and time the badge was updated
|
|
372
|
+
*/
|
|
373
|
+
updatedAt: string;
|
|
374
|
+
/**
|
|
375
|
+
* Array of data jobs associated with the badge
|
|
376
|
+
*/
|
|
377
|
+
dataJobs?: Array<BadgeUpdateResponse.DataJob>;
|
|
221
378
|
/**
|
|
222
379
|
* Array of user badges
|
|
223
380
|
*/
|
|
224
|
-
|
|
381
|
+
loyaltyBadgeUsers?: Array<BadgeUpdateResponse.LoyaltyBadgeUser>;
|
|
382
|
+
/**
|
|
383
|
+
* Array of loyalty rules associated with the badge
|
|
384
|
+
*/
|
|
385
|
+
loyaltyRules?: Array<BadgeUpdateResponse.LoyaltyRule>;
|
|
225
386
|
}
|
|
226
387
|
export declare namespace BadgeUpdateResponse {
|
|
227
388
|
/**
|
|
@@ -238,7 +399,7 @@ export declare namespace BadgeUpdateResponse {
|
|
|
238
399
|
amount: number | null;
|
|
239
400
|
association: Array<LoyaltyCondition.Association>;
|
|
240
401
|
/**
|
|
241
|
-
*
|
|
402
|
+
* URL of the CSV file
|
|
242
403
|
*/
|
|
243
404
|
csvUrl: string | null;
|
|
244
405
|
/**
|
|
@@ -265,6 +426,10 @@ export declare namespace BadgeUpdateResponse {
|
|
|
265
426
|
* The type of the condition
|
|
266
427
|
*/
|
|
267
428
|
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
429
|
+
/**
|
|
430
|
+
* Array of CSV files associated with the condition
|
|
431
|
+
*/
|
|
432
|
+
csvFiles?: Array<LoyaltyCondition.CsvFile>;
|
|
268
433
|
}
|
|
269
434
|
namespace LoyaltyCondition {
|
|
270
435
|
interface Association {
|
|
@@ -326,12 +491,56 @@ export declare namespace BadgeUpdateResponse {
|
|
|
326
491
|
name: string;
|
|
327
492
|
}
|
|
328
493
|
}
|
|
494
|
+
interface CsvFile {
|
|
495
|
+
/**
|
|
496
|
+
* UUID of the CSV file (converted to lowercase)
|
|
497
|
+
*/
|
|
498
|
+
id: string;
|
|
499
|
+
/**
|
|
500
|
+
* The description of the CSV file
|
|
501
|
+
*/
|
|
502
|
+
description: string | null;
|
|
503
|
+
/**
|
|
504
|
+
* The name of the CSV file
|
|
505
|
+
*/
|
|
506
|
+
name: string | null;
|
|
507
|
+
/**
|
|
508
|
+
* The URL of the CSV file
|
|
509
|
+
*/
|
|
510
|
+
url: string | null;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
interface DataJob {
|
|
514
|
+
/**
|
|
515
|
+
* UUID of the data job (converted to lowercase)
|
|
516
|
+
*/
|
|
517
|
+
id: string;
|
|
518
|
+
/**
|
|
519
|
+
* The date and time the data job was created
|
|
520
|
+
*/
|
|
521
|
+
createdAt: string;
|
|
522
|
+
/**
|
|
523
|
+
* The status of the data job
|
|
524
|
+
*/
|
|
525
|
+
status: 'pending' | 'complete' | 'failed';
|
|
526
|
+
/**
|
|
527
|
+
* The date and time the data job was updated
|
|
528
|
+
*/
|
|
529
|
+
updatedAt: string;
|
|
530
|
+
/**
|
|
531
|
+
* The message associated with the data job
|
|
532
|
+
*/
|
|
533
|
+
message?: string | null;
|
|
329
534
|
}
|
|
330
535
|
interface LoyaltyBadgeUser {
|
|
331
536
|
/**
|
|
332
537
|
* UUID of the user badge (converted to lowercase)
|
|
333
538
|
*/
|
|
334
539
|
id: string;
|
|
540
|
+
/**
|
|
541
|
+
* The date and time the user badge was created
|
|
542
|
+
*/
|
|
543
|
+
createdAt: string;
|
|
335
544
|
/**
|
|
336
545
|
* UUID of the badge (converted to lowercase)
|
|
337
546
|
*/
|
|
@@ -344,6 +553,10 @@ export declare namespace BadgeUpdateResponse {
|
|
|
344
553
|
* The status of the badge
|
|
345
554
|
*/
|
|
346
555
|
status: 'active' | 'inactive' | 'revoked';
|
|
556
|
+
/**
|
|
557
|
+
* The date and time the user badge was updated
|
|
558
|
+
*/
|
|
559
|
+
updatedAt: string;
|
|
347
560
|
/**
|
|
348
561
|
* UUID of the user (converted to lowercase)
|
|
349
562
|
*/
|
|
@@ -352,10 +565,43 @@ export declare namespace BadgeUpdateResponse {
|
|
|
352
565
|
* UUID of the website (converted to lowercase)
|
|
353
566
|
*/
|
|
354
567
|
websiteId: string;
|
|
568
|
+
/**
|
|
569
|
+
* Whether the user has dismissed the badge in the UI
|
|
570
|
+
*/
|
|
571
|
+
dismissedInUi?: boolean;
|
|
355
572
|
/**
|
|
356
573
|
* Array of progress for the badge
|
|
357
574
|
*/
|
|
358
575
|
progress?: unknown;
|
|
576
|
+
/**
|
|
577
|
+
* User associated with the user badge
|
|
578
|
+
*/
|
|
579
|
+
user?: LoyaltyBadgeUser.User;
|
|
580
|
+
}
|
|
581
|
+
namespace LoyaltyBadgeUser {
|
|
582
|
+
/**
|
|
583
|
+
* User associated with the user badge
|
|
584
|
+
*/
|
|
585
|
+
interface User {
|
|
586
|
+
/**
|
|
587
|
+
* UUID of the user (converted to lowercase)
|
|
588
|
+
*/
|
|
589
|
+
id: string;
|
|
590
|
+
/**
|
|
591
|
+
* Wallet address of the user
|
|
592
|
+
*/
|
|
593
|
+
walletAddress: string;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
interface LoyaltyRule {
|
|
597
|
+
/**
|
|
598
|
+
* UUID of the loyalty rule (converted to lowercase)
|
|
599
|
+
*/
|
|
600
|
+
id: string;
|
|
601
|
+
/**
|
|
602
|
+
* The name of the loyalty rule
|
|
603
|
+
*/
|
|
604
|
+
name: string;
|
|
359
605
|
}
|
|
360
606
|
}
|
|
361
607
|
/**
|
|
@@ -366,6 +612,10 @@ export interface BadgeListResponse {
|
|
|
366
612
|
* UUID of the badge (converted to lowercase)
|
|
367
613
|
*/
|
|
368
614
|
id: string;
|
|
615
|
+
/**
|
|
616
|
+
* The date and time the badge was created
|
|
617
|
+
*/
|
|
618
|
+
createdAt: string;
|
|
369
619
|
/**
|
|
370
620
|
* The description of the badge
|
|
371
621
|
*/
|
|
@@ -382,10 +632,22 @@ export interface BadgeListResponse {
|
|
|
382
632
|
* The name of the badge
|
|
383
633
|
*/
|
|
384
634
|
name: string;
|
|
635
|
+
/**
|
|
636
|
+
* The date and time the badge was updated
|
|
637
|
+
*/
|
|
638
|
+
updatedAt: string;
|
|
639
|
+
/**
|
|
640
|
+
* Array of data jobs associated with the badge
|
|
641
|
+
*/
|
|
642
|
+
dataJobs?: Array<BadgeListResponse.DataJob>;
|
|
385
643
|
/**
|
|
386
644
|
* Array of user badges
|
|
387
645
|
*/
|
|
388
|
-
|
|
646
|
+
loyaltyBadgeUsers?: Array<BadgeListResponse.LoyaltyBadgeUser>;
|
|
647
|
+
/**
|
|
648
|
+
* Array of loyalty rules associated with the badge
|
|
649
|
+
*/
|
|
650
|
+
loyaltyRules?: Array<BadgeListResponse.LoyaltyRule>;
|
|
389
651
|
}
|
|
390
652
|
export declare namespace BadgeListResponse {
|
|
391
653
|
/**
|
|
@@ -402,7 +664,7 @@ export declare namespace BadgeListResponse {
|
|
|
402
664
|
amount: number | null;
|
|
403
665
|
association: Array<LoyaltyCondition.Association>;
|
|
404
666
|
/**
|
|
405
|
-
*
|
|
667
|
+
* URL of the CSV file
|
|
406
668
|
*/
|
|
407
669
|
csvUrl: string | null;
|
|
408
670
|
/**
|
|
@@ -429,6 +691,10 @@ export declare namespace BadgeListResponse {
|
|
|
429
691
|
* The type of the condition
|
|
430
692
|
*/
|
|
431
693
|
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
694
|
+
/**
|
|
695
|
+
* Array of CSV files associated with the condition
|
|
696
|
+
*/
|
|
697
|
+
csvFiles?: Array<LoyaltyCondition.CsvFile>;
|
|
432
698
|
}
|
|
433
699
|
namespace LoyaltyCondition {
|
|
434
700
|
interface Association {
|
|
@@ -490,12 +756,56 @@ export declare namespace BadgeListResponse {
|
|
|
490
756
|
name: string;
|
|
491
757
|
}
|
|
492
758
|
}
|
|
759
|
+
interface CsvFile {
|
|
760
|
+
/**
|
|
761
|
+
* UUID of the CSV file (converted to lowercase)
|
|
762
|
+
*/
|
|
763
|
+
id: string;
|
|
764
|
+
/**
|
|
765
|
+
* The description of the CSV file
|
|
766
|
+
*/
|
|
767
|
+
description: string | null;
|
|
768
|
+
/**
|
|
769
|
+
* The name of the CSV file
|
|
770
|
+
*/
|
|
771
|
+
name: string | null;
|
|
772
|
+
/**
|
|
773
|
+
* The URL of the CSV file
|
|
774
|
+
*/
|
|
775
|
+
url: string | null;
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
interface DataJob {
|
|
779
|
+
/**
|
|
780
|
+
* UUID of the data job (converted to lowercase)
|
|
781
|
+
*/
|
|
782
|
+
id: string;
|
|
783
|
+
/**
|
|
784
|
+
* The date and time the data job was created
|
|
785
|
+
*/
|
|
786
|
+
createdAt: string;
|
|
787
|
+
/**
|
|
788
|
+
* The status of the data job
|
|
789
|
+
*/
|
|
790
|
+
status: 'pending' | 'complete' | 'failed';
|
|
791
|
+
/**
|
|
792
|
+
* The date and time the data job was updated
|
|
793
|
+
*/
|
|
794
|
+
updatedAt: string;
|
|
795
|
+
/**
|
|
796
|
+
* The message associated with the data job
|
|
797
|
+
*/
|
|
798
|
+
message?: string | null;
|
|
493
799
|
}
|
|
494
800
|
interface LoyaltyBadgeUser {
|
|
495
801
|
/**
|
|
496
802
|
* UUID of the user badge (converted to lowercase)
|
|
497
803
|
*/
|
|
498
804
|
id: string;
|
|
805
|
+
/**
|
|
806
|
+
* The date and time the user badge was created
|
|
807
|
+
*/
|
|
808
|
+
createdAt: string;
|
|
499
809
|
/**
|
|
500
810
|
* UUID of the badge (converted to lowercase)
|
|
501
811
|
*/
|
|
@@ -508,6 +818,10 @@ export declare namespace BadgeListResponse {
|
|
|
508
818
|
* The status of the badge
|
|
509
819
|
*/
|
|
510
820
|
status: 'active' | 'inactive' | 'revoked';
|
|
821
|
+
/**
|
|
822
|
+
* The date and time the user badge was updated
|
|
823
|
+
*/
|
|
824
|
+
updatedAt: string;
|
|
511
825
|
/**
|
|
512
826
|
* UUID of the user (converted to lowercase)
|
|
513
827
|
*/
|
|
@@ -516,10 +830,43 @@ export declare namespace BadgeListResponse {
|
|
|
516
830
|
* UUID of the website (converted to lowercase)
|
|
517
831
|
*/
|
|
518
832
|
websiteId: string;
|
|
833
|
+
/**
|
|
834
|
+
* Whether the user has dismissed the badge in the UI
|
|
835
|
+
*/
|
|
836
|
+
dismissedInUi?: boolean;
|
|
519
837
|
/**
|
|
520
838
|
* Array of progress for the badge
|
|
521
839
|
*/
|
|
522
840
|
progress?: unknown;
|
|
841
|
+
/**
|
|
842
|
+
* User associated with the user badge
|
|
843
|
+
*/
|
|
844
|
+
user?: LoyaltyBadgeUser.User;
|
|
845
|
+
}
|
|
846
|
+
namespace LoyaltyBadgeUser {
|
|
847
|
+
/**
|
|
848
|
+
* User associated with the user badge
|
|
849
|
+
*/
|
|
850
|
+
interface User {
|
|
851
|
+
/**
|
|
852
|
+
* UUID of the user (converted to lowercase)
|
|
853
|
+
*/
|
|
854
|
+
id: string;
|
|
855
|
+
/**
|
|
856
|
+
* Wallet address of the user
|
|
857
|
+
*/
|
|
858
|
+
walletAddress: string;
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
interface LoyaltyRule {
|
|
862
|
+
/**
|
|
863
|
+
* UUID of the loyalty rule (converted to lowercase)
|
|
864
|
+
*/
|
|
865
|
+
id: string;
|
|
866
|
+
/**
|
|
867
|
+
* The name of the loyalty rule
|
|
868
|
+
*/
|
|
869
|
+
name: string;
|
|
523
870
|
}
|
|
524
871
|
}
|
|
525
872
|
/**
|
|
@@ -530,6 +877,10 @@ export interface BadgeDeleteResponse {
|
|
|
530
877
|
* UUID of the badge (converted to lowercase)
|
|
531
878
|
*/
|
|
532
879
|
id: string;
|
|
880
|
+
/**
|
|
881
|
+
* The date and time the badge was created
|
|
882
|
+
*/
|
|
883
|
+
createdAt: string;
|
|
533
884
|
/**
|
|
534
885
|
* The description of the badge
|
|
535
886
|
*/
|
|
@@ -546,10 +897,22 @@ export interface BadgeDeleteResponse {
|
|
|
546
897
|
* The name of the badge
|
|
547
898
|
*/
|
|
548
899
|
name: string;
|
|
900
|
+
/**
|
|
901
|
+
* The date and time the badge was updated
|
|
902
|
+
*/
|
|
903
|
+
updatedAt: string;
|
|
904
|
+
/**
|
|
905
|
+
* Array of data jobs associated with the badge
|
|
906
|
+
*/
|
|
907
|
+
dataJobs?: Array<BadgeDeleteResponse.DataJob>;
|
|
549
908
|
/**
|
|
550
909
|
* Array of user badges
|
|
551
910
|
*/
|
|
552
|
-
|
|
911
|
+
loyaltyBadgeUsers?: Array<BadgeDeleteResponse.LoyaltyBadgeUser>;
|
|
912
|
+
/**
|
|
913
|
+
* Array of loyalty rules associated with the badge
|
|
914
|
+
*/
|
|
915
|
+
loyaltyRules?: Array<BadgeDeleteResponse.LoyaltyRule>;
|
|
553
916
|
}
|
|
554
917
|
export declare namespace BadgeDeleteResponse {
|
|
555
918
|
/**
|
|
@@ -566,7 +929,7 @@ export declare namespace BadgeDeleteResponse {
|
|
|
566
929
|
amount: number | null;
|
|
567
930
|
association: Array<LoyaltyCondition.Association>;
|
|
568
931
|
/**
|
|
569
|
-
*
|
|
932
|
+
* URL of the CSV file
|
|
570
933
|
*/
|
|
571
934
|
csvUrl: string | null;
|
|
572
935
|
/**
|
|
@@ -593,6 +956,10 @@ export declare namespace BadgeDeleteResponse {
|
|
|
593
956
|
* The type of the condition
|
|
594
957
|
*/
|
|
595
958
|
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
959
|
+
/**
|
|
960
|
+
* Array of CSV files associated with the condition
|
|
961
|
+
*/
|
|
962
|
+
csvFiles?: Array<LoyaltyCondition.CsvFile>;
|
|
596
963
|
}
|
|
597
964
|
namespace LoyaltyCondition {
|
|
598
965
|
interface Association {
|
|
@@ -654,12 +1021,56 @@ export declare namespace BadgeDeleteResponse {
|
|
|
654
1021
|
name: string;
|
|
655
1022
|
}
|
|
656
1023
|
}
|
|
1024
|
+
interface CsvFile {
|
|
1025
|
+
/**
|
|
1026
|
+
* UUID of the CSV file (converted to lowercase)
|
|
1027
|
+
*/
|
|
1028
|
+
id: string;
|
|
1029
|
+
/**
|
|
1030
|
+
* The description of the CSV file
|
|
1031
|
+
*/
|
|
1032
|
+
description: string | null;
|
|
1033
|
+
/**
|
|
1034
|
+
* The name of the CSV file
|
|
1035
|
+
*/
|
|
1036
|
+
name: string | null;
|
|
1037
|
+
/**
|
|
1038
|
+
* The URL of the CSV file
|
|
1039
|
+
*/
|
|
1040
|
+
url: string | null;
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
interface DataJob {
|
|
1044
|
+
/**
|
|
1045
|
+
* UUID of the data job (converted to lowercase)
|
|
1046
|
+
*/
|
|
1047
|
+
id: string;
|
|
1048
|
+
/**
|
|
1049
|
+
* The date and time the data job was created
|
|
1050
|
+
*/
|
|
1051
|
+
createdAt: string;
|
|
1052
|
+
/**
|
|
1053
|
+
* The status of the data job
|
|
1054
|
+
*/
|
|
1055
|
+
status: 'pending' | 'complete' | 'failed';
|
|
1056
|
+
/**
|
|
1057
|
+
* The date and time the data job was updated
|
|
1058
|
+
*/
|
|
1059
|
+
updatedAt: string;
|
|
1060
|
+
/**
|
|
1061
|
+
* The message associated with the data job
|
|
1062
|
+
*/
|
|
1063
|
+
message?: string | null;
|
|
657
1064
|
}
|
|
658
1065
|
interface LoyaltyBadgeUser {
|
|
659
1066
|
/**
|
|
660
1067
|
* UUID of the user badge (converted to lowercase)
|
|
661
1068
|
*/
|
|
662
1069
|
id: string;
|
|
1070
|
+
/**
|
|
1071
|
+
* The date and time the user badge was created
|
|
1072
|
+
*/
|
|
1073
|
+
createdAt: string;
|
|
663
1074
|
/**
|
|
664
1075
|
* UUID of the badge (converted to lowercase)
|
|
665
1076
|
*/
|
|
@@ -672,6 +1083,10 @@ export declare namespace BadgeDeleteResponse {
|
|
|
672
1083
|
* The status of the badge
|
|
673
1084
|
*/
|
|
674
1085
|
status: 'active' | 'inactive' | 'revoked';
|
|
1086
|
+
/**
|
|
1087
|
+
* The date and time the user badge was updated
|
|
1088
|
+
*/
|
|
1089
|
+
updatedAt: string;
|
|
675
1090
|
/**
|
|
676
1091
|
* UUID of the user (converted to lowercase)
|
|
677
1092
|
*/
|
|
@@ -680,10 +1095,43 @@ export declare namespace BadgeDeleteResponse {
|
|
|
680
1095
|
* UUID of the website (converted to lowercase)
|
|
681
1096
|
*/
|
|
682
1097
|
websiteId: string;
|
|
1098
|
+
/**
|
|
1099
|
+
* Whether the user has dismissed the badge in the UI
|
|
1100
|
+
*/
|
|
1101
|
+
dismissedInUi?: boolean;
|
|
683
1102
|
/**
|
|
684
1103
|
* Array of progress for the badge
|
|
685
1104
|
*/
|
|
686
1105
|
progress?: unknown;
|
|
1106
|
+
/**
|
|
1107
|
+
* User associated with the user badge
|
|
1108
|
+
*/
|
|
1109
|
+
user?: LoyaltyBadgeUser.User;
|
|
1110
|
+
}
|
|
1111
|
+
namespace LoyaltyBadgeUser {
|
|
1112
|
+
/**
|
|
1113
|
+
* User associated with the user badge
|
|
1114
|
+
*/
|
|
1115
|
+
interface User {
|
|
1116
|
+
/**
|
|
1117
|
+
* UUID of the user (converted to lowercase)
|
|
1118
|
+
*/
|
|
1119
|
+
id: string;
|
|
1120
|
+
/**
|
|
1121
|
+
* Wallet address of the user
|
|
1122
|
+
*/
|
|
1123
|
+
walletAddress: string;
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
interface LoyaltyRule {
|
|
1127
|
+
/**
|
|
1128
|
+
* UUID of the loyalty rule (converted to lowercase)
|
|
1129
|
+
*/
|
|
1130
|
+
id: string;
|
|
1131
|
+
/**
|
|
1132
|
+
* The name of the loyalty rule
|
|
1133
|
+
*/
|
|
1134
|
+
name: string;
|
|
687
1135
|
}
|
|
688
1136
|
}
|
|
689
1137
|
/**
|
|
@@ -723,6 +1171,10 @@ export declare namespace BadgeRewardResponse {
|
|
|
723
1171
|
}
|
|
724
1172
|
}
|
|
725
1173
|
export interface BadgeCreateParams {
|
|
1174
|
+
/**
|
|
1175
|
+
* Array of conditions for the badge
|
|
1176
|
+
*/
|
|
1177
|
+
conditions: Array<BadgeCreateParams.Condition>;
|
|
726
1178
|
/**
|
|
727
1179
|
* The URL of the badge image
|
|
728
1180
|
*/
|
|
@@ -735,25 +1187,18 @@ export interface BadgeCreateParams {
|
|
|
735
1187
|
* UUID of the organization (optional, converted to lowercase)
|
|
736
1188
|
*/
|
|
737
1189
|
organizationId: string;
|
|
738
|
-
/**
|
|
739
|
-
* Array of rules for the badge
|
|
740
|
-
*/
|
|
741
|
-
rules: Array<BadgeCreateParams.Rule>;
|
|
742
1190
|
/**
|
|
743
1191
|
* UUID of the website (optional, converted to lowercase)
|
|
744
1192
|
*/
|
|
745
1193
|
websiteId: string;
|
|
1194
|
+
csvFiles?: Array<BadgeCreateParams.CsvFile>;
|
|
746
1195
|
/**
|
|
747
1196
|
* The description of the badge
|
|
748
1197
|
*/
|
|
749
1198
|
description?: string;
|
|
750
1199
|
}
|
|
751
1200
|
export declare namespace BadgeCreateParams {
|
|
752
|
-
interface
|
|
753
|
-
/**
|
|
754
|
-
* The type of rule
|
|
755
|
-
*/
|
|
756
|
-
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
1201
|
+
interface Condition {
|
|
757
1202
|
/**
|
|
758
1203
|
* The amount of the rule
|
|
759
1204
|
*/
|
|
@@ -781,7 +1226,7 @@ export declare namespace BadgeCreateParams {
|
|
|
781
1226
|
/**
|
|
782
1227
|
* UUID of the loyalty rule chain (optional, converted to lowercase)
|
|
783
1228
|
*/
|
|
784
|
-
loyaltyRuleChainId?: string;
|
|
1229
|
+
loyaltyRuleChainId?: string | null;
|
|
785
1230
|
/**
|
|
786
1231
|
* Array of UUIDs of the rule group (optional, converted to lowercase)
|
|
787
1232
|
*/
|
|
@@ -798,9 +1243,19 @@ export declare namespace BadgeCreateParams {
|
|
|
798
1243
|
* The number of rules that need to be fulfilled to satisfy the condition
|
|
799
1244
|
*/
|
|
800
1245
|
requiredCount?: number | null;
|
|
1246
|
+
/**
|
|
1247
|
+
* The type of rule
|
|
1248
|
+
*/
|
|
1249
|
+
type?: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
1250
|
+
}
|
|
1251
|
+
interface CsvFile {
|
|
1252
|
+
src: string;
|
|
1253
|
+
description?: string;
|
|
1254
|
+
name?: string;
|
|
801
1255
|
}
|
|
802
1256
|
}
|
|
803
1257
|
export interface BadgeUpdateParams {
|
|
1258
|
+
csvFiles?: Array<BadgeUpdateParams.CsvFile>;
|
|
804
1259
|
/**
|
|
805
1260
|
* The description of the badge
|
|
806
1261
|
*/
|
|
@@ -814,11 +1269,18 @@ export interface BadgeUpdateParams {
|
|
|
814
1269
|
*/
|
|
815
1270
|
name?: string;
|
|
816
1271
|
}
|
|
1272
|
+
export declare namespace BadgeUpdateParams {
|
|
1273
|
+
interface CsvFile {
|
|
1274
|
+
src: string;
|
|
1275
|
+
description?: string;
|
|
1276
|
+
name?: string;
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
817
1279
|
export interface BadgeListParams {
|
|
818
1280
|
/**
|
|
819
1281
|
* Array of badge IDs (converted to lowercase) to fetch
|
|
820
1282
|
*/
|
|
821
|
-
badgeIds?: Array<string>;
|
|
1283
|
+
badgeIds?: string | Array<string>;
|
|
822
1284
|
/**
|
|
823
1285
|
* Include deleted badges in the response
|
|
824
1286
|
*/
|
|
@@ -836,15 +1298,31 @@ export interface BadgeListParams {
|
|
|
836
1298
|
*/
|
|
837
1299
|
startingAfter?: string;
|
|
838
1300
|
/**
|
|
839
|
-
*
|
|
1301
|
+
* External identifier of the user group
|
|
840
1302
|
*/
|
|
841
|
-
|
|
1303
|
+
userGroupExternalIdentifier?: string;
|
|
1304
|
+
/**
|
|
1305
|
+
* UUID of the user group
|
|
1306
|
+
*/
|
|
1307
|
+
userGroupId?: string;
|
|
1308
|
+
/**
|
|
1309
|
+
* UUID of the user, or array of UUID.
|
|
1310
|
+
*/
|
|
1311
|
+
userId?: string | Array<string>;
|
|
1312
|
+
/**
|
|
1313
|
+
* Wallet Address of the user, or array of wallet addresses.
|
|
1314
|
+
*/
|
|
1315
|
+
walletAddress?: string | Array<string>;
|
|
842
1316
|
/**
|
|
843
1317
|
* UUID of the website (optional, converted to lowercase)
|
|
844
1318
|
*/
|
|
845
1319
|
websiteId?: string;
|
|
846
1320
|
}
|
|
847
1321
|
export interface BadgeRevokeParams {
|
|
1322
|
+
/**
|
|
1323
|
+
* Status of the badge
|
|
1324
|
+
*/
|
|
1325
|
+
status?: 'active' | 'inactive' | 'revoked';
|
|
848
1326
|
/**
|
|
849
1327
|
* UUID of the user (converted to lowercase)
|
|
850
1328
|
*/
|
|
@@ -855,6 +1333,10 @@ export interface BadgeRevokeParams {
|
|
|
855
1333
|
walletAddress?: string;
|
|
856
1334
|
}
|
|
857
1335
|
export interface BadgeRewardParams {
|
|
1336
|
+
/**
|
|
1337
|
+
* Status of the badge
|
|
1338
|
+
*/
|
|
1339
|
+
status?: 'active' | 'inactive' | 'revoked';
|
|
858
1340
|
/**
|
|
859
1341
|
* UUID of the user (converted to lowercase)
|
|
860
1342
|
*/
|