@snagsolutions/sdk 0.1.0-alpha.152 → 0.1.0-alpha.153
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 +8 -0
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auctions/auctions.d.ts +2 -2
- package/resources/auctions/auctions.d.ts.map +1 -1
- package/resources/auctions/auctions.js.map +1 -1
- package/resources/auctions/auctions.mjs.map +1 -1
- package/resources/auctions/index.d.ts +1 -1
- package/resources/auctions/index.d.ts.map +1 -1
- package/resources/auctions/index.js.map +1 -1
- package/resources/auctions/index.mjs.map +1 -1
- package/resources/auctions/website-user-attributes/index.d.ts +2 -2
- package/resources/auctions/website-user-attributes/index.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/index.js.map +1 -1
- package/resources/auctions/website-user-attributes/index.mjs +1 -1
- package/resources/auctions/website-user-attributes/index.mjs.map +1 -1
- package/resources/auctions/website-user-attributes/values.d.ts +1 -47
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/values.js +0 -14
- package/resources/auctions/website-user-attributes/values.js.map +1 -1
- package/resources/auctions/website-user-attributes/values.mjs +0 -14
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +3 -43
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.js +0 -7
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +0 -7
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +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/index.d.ts +1 -1
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +2 -2
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/rules.d.ts +18 -5
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/transactions/index.d.ts +2 -2
- package/resources/loyalty/transactions/index.d.ts.map +1 -1
- package/resources/loyalty/transactions/index.js.map +1 -1
- package/resources/loyalty/transactions/index.mjs +1 -1
- package/resources/loyalty/transactions/index.mjs.map +1 -1
- package/resources/loyalty/transactions/rule-statuses.d.ts +1 -60
- package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -1
- package/resources/loyalty/transactions/rule-statuses.js +0 -7
- package/resources/loyalty/transactions/rule-statuses.js.map +1 -1
- package/resources/loyalty/transactions/rule-statuses.mjs +0 -7
- package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -1
- package/resources/loyalty/transactions/transactions.d.ts +3 -121
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions/transactions.js +0 -15
- package/resources/loyalty/transactions/transactions.js.map +1 -1
- package/resources/loyalty/transactions/transactions.mjs +1 -16
- package/resources/loyalty/transactions/transactions.mjs.map +1 -1
- package/resources/users/users.d.ts +14 -0
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js.map +1 -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 -90
- package/resources/websites/website-collections.d.ts.map +1 -1
- package/resources/websites/website-collections.js +0 -37
- package/resources/websites/website-collections.js.map +1 -1
- package/resources/websites/website-collections.mjs +0 -37
- package/resources/websites/website-collections.mjs.map +1 -1
- package/resources/websites/websites.d.ts +3 -105
- package/resources/websites/websites.d.ts.map +1 -1
- package/resources/websites/websites.js +0 -13
- package/resources/websites/websites.js.map +1 -1
- package/resources/websites/websites.mjs +1 -14
- package/resources/websites/websites.mjs.map +1 -1
- package/src/index.ts +1 -9
- package/src/resources/auctions/auctions.ts +0 -4
- package/src/resources/auctions/index.ts +0 -2
- package/src/resources/auctions/website-user-attributes/index.ts +1 -9
- package/src/resources/auctions/website-user-attributes/values.ts +1 -69
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +1 -71
- package/src/resources/index.ts +1 -7
- package/src/resources/loyalty/index.ts +0 -2
- package/src/resources/loyalty/loyalty.ts +0 -4
- package/src/resources/loyalty/rules.ts +23 -7
- package/src/resources/loyalty/transactions/index.ts +1 -9
- package/src/resources/loyalty/transactions/rule-statuses.ts +0 -91
- package/src/resources/loyalty/transactions/transactions.ts +1 -160
- package/src/resources/users/users.ts +22 -0
- package/src/resources/websites/index.ts +2 -13
- package/src/resources/websites/website-collections.ts +1 -179
- package/src/resources/websites/websites.ts +3 -141
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,23 +1,12 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
2
|
import * as Core from "../../core.js";
|
|
3
3
|
import * as WebsiteCollectionsAPI from "./website-collections.js";
|
|
4
|
-
import {
|
|
4
|
+
import { WebsiteCollections } from "./website-collections.js";
|
|
5
5
|
import * as WebsiteUserRolesAPI from "./website-user-roles.js";
|
|
6
6
|
import { WebsiteUserRoleAssignParams, WebsiteUserRoleAssignResponse, WebsiteUserRoleListParams, WebsiteUserRoleListResponse, WebsiteUserRoles } from "./website-user-roles.js";
|
|
7
7
|
export declare class Websites extends APIResource {
|
|
8
8
|
websiteCollections: WebsiteCollectionsAPI.WebsiteCollections;
|
|
9
9
|
websiteUserRoles: WebsiteUserRolesAPI.WebsiteUserRoles;
|
|
10
|
-
/**
|
|
11
|
-
* Creates a new website
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const website = await client.websites.create({
|
|
16
|
-
* name: 'My New Website',
|
|
17
|
-
* });
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
create(body: WebsiteCreateParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteCreateResponse>;
|
|
21
10
|
/**
|
|
22
11
|
* Returns a list of websites. Includes optional query parameters for filtering and
|
|
23
12
|
* pagination.
|
|
@@ -30,67 +19,6 @@ export declare class Websites extends APIResource {
|
|
|
30
19
|
list(query?: WebsiteListParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteListResponse>;
|
|
31
20
|
list(options?: Core.RequestOptions): Core.APIPromise<WebsiteListResponse>;
|
|
32
21
|
}
|
|
33
|
-
/**
|
|
34
|
-
* Schema representing a website
|
|
35
|
-
*/
|
|
36
|
-
export interface WebsiteCreateResponse {
|
|
37
|
-
/**
|
|
38
|
-
* Website ID
|
|
39
|
-
*/
|
|
40
|
-
id: string;
|
|
41
|
-
/**
|
|
42
|
-
* Counts of related entities
|
|
43
|
-
*/
|
|
44
|
-
_count: WebsiteCreateResponse._Count;
|
|
45
|
-
/**
|
|
46
|
-
* Collections associated with the website
|
|
47
|
-
*/
|
|
48
|
-
collections: Array<WebsiteCreateResponse.Collection>;
|
|
49
|
-
/**
|
|
50
|
-
* Website name
|
|
51
|
-
*/
|
|
52
|
-
name: string;
|
|
53
|
-
/**
|
|
54
|
-
* Date when terms were signed
|
|
55
|
-
*/
|
|
56
|
-
termsSignedAt: string | null;
|
|
57
|
-
}
|
|
58
|
-
export declare namespace WebsiteCreateResponse {
|
|
59
|
-
/**
|
|
60
|
-
* Counts of related entities
|
|
61
|
-
*/
|
|
62
|
-
interface _Count {
|
|
63
|
-
/**
|
|
64
|
-
* Count of minting contract assets
|
|
65
|
-
*/
|
|
66
|
-
mintingContractAssets: number;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Schema representing a collection
|
|
70
|
-
*/
|
|
71
|
-
interface Collection {
|
|
72
|
-
/**
|
|
73
|
-
* Collection ID
|
|
74
|
-
*/
|
|
75
|
-
id: string;
|
|
76
|
-
/**
|
|
77
|
-
* URL of the collection image
|
|
78
|
-
*/
|
|
79
|
-
imageUrl: string | null;
|
|
80
|
-
/**
|
|
81
|
-
* Collection name
|
|
82
|
-
*/
|
|
83
|
-
name: string;
|
|
84
|
-
/**
|
|
85
|
-
* Royalty fee percentage
|
|
86
|
-
*/
|
|
87
|
-
royaltyFee: number;
|
|
88
|
-
/**
|
|
89
|
-
* Address to receive royalty fees
|
|
90
|
-
*/
|
|
91
|
-
royaltyFeeAddress: string;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
22
|
/**
|
|
95
23
|
* Response schema for fetching websites
|
|
96
24
|
*/
|
|
@@ -167,36 +95,6 @@ export declare namespace WebsiteListResponse {
|
|
|
167
95
|
}
|
|
168
96
|
}
|
|
169
97
|
}
|
|
170
|
-
export interface WebsiteCreateParams {
|
|
171
|
-
/**
|
|
172
|
-
* Name of the website
|
|
173
|
-
*/
|
|
174
|
-
name: string;
|
|
175
|
-
/**
|
|
176
|
-
* Discord URL of the website account
|
|
177
|
-
*/
|
|
178
|
-
discordUrl?: string;
|
|
179
|
-
/**
|
|
180
|
-
* Home URL of the official website
|
|
181
|
-
*/
|
|
182
|
-
homeUrl?: string;
|
|
183
|
-
/**
|
|
184
|
-
* Instagram username of the website account
|
|
185
|
-
*/
|
|
186
|
-
instagramUsername?: string;
|
|
187
|
-
/**
|
|
188
|
-
* Organization ID for which this website is being created
|
|
189
|
-
*/
|
|
190
|
-
organizationId?: string;
|
|
191
|
-
/**
|
|
192
|
-
* Telegram URL of the website account
|
|
193
|
-
*/
|
|
194
|
-
telegramUrl?: string;
|
|
195
|
-
/**
|
|
196
|
-
* Twitter username of the website account
|
|
197
|
-
*/
|
|
198
|
-
twitterUsername?: string;
|
|
199
|
-
}
|
|
200
98
|
export interface WebsiteListParams {
|
|
201
99
|
/**
|
|
202
100
|
* Number of items to return
|
|
@@ -216,8 +114,8 @@ export interface WebsiteListParams {
|
|
|
216
114
|
startingAfter?: string;
|
|
217
115
|
}
|
|
218
116
|
export declare namespace Websites {
|
|
219
|
-
export { type
|
|
220
|
-
export { WebsiteCollections as WebsiteCollections
|
|
117
|
+
export { type WebsiteListResponse as WebsiteListResponse, type WebsiteListParams as WebsiteListParams };
|
|
118
|
+
export { WebsiteCollections as WebsiteCollections };
|
|
221
119
|
export { WebsiteUserRoles as WebsiteUserRoles, type WebsiteUserRoleListResponse as WebsiteUserRoleListResponse, type WebsiteUserRoleAssignResponse as WebsiteUserRoleAssignResponse, type WebsiteUserRoleListParams as WebsiteUserRoleListParams, type WebsiteUserRoleAssignParams as WebsiteUserRoleAssignParams, };
|
|
222
120
|
}
|
|
223
121
|
//# sourceMappingURL=websites.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websites.d.ts","sourceRoot":"","sources":["../../src/resources/websites/websites.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,qBAAqB,MAAM,uBAAuB,CAAC;AAC/D,OAAO,
|
|
1
|
+
{"version":3,"file":"websites.d.ts","sourceRoot":"","sources":["../../src/resources/websites/websites.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,qBAAqB,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,mBAAmB,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,yBAAyB,EACzB,2BAA2B,EAC3B,gBAAgB,EACjB,MAAM,sBAAsB,CAAC;AAE9B,qBAAa,QAAS,SAAQ,WAAW;IACvC,kBAAkB,EAAE,qBAAqB,CAAC,kBAAkB,CAE1D;IACF,gBAAgB,EAAE,mBAAmB,CAAC,gBAAgB,CAEpD;IAEF;;;;;;;;OAQG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;IACpG,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;CAU1E;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAEtC;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,yBAAiB,mBAAmB,CAAC;IACnC;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QAEpB;;WAEG;QACH,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAEpC;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,MAAM;YACrB;;eAEG;YACH,qBAAqB,EAAE,MAAM,CAAC;SAC/B;QAED;;WAEG;QACH,UAAiB,UAAU;YACzB;;eAEG;YACH,EAAE,EAAE,MAAM,CAAC;YAEX;;eAEG;YACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;YAExB;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;eAEG;YACH,UAAU,EAAE,MAAM,CAAC;YAEnB;;eAEG;YACH,iBAAiB,EAAE,MAAM,CAAC;SAC3B;KACF;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAKD,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;IAExG,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;IAEpD,OAAO,EACL,gBAAgB,IAAI,gBAAgB,EACpC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -37,19 +37,6 @@ class Websites extends resource_1.APIResource {
|
|
|
37
37
|
this.websiteCollections = new WebsiteCollectionsAPI.WebsiteCollections(this._client);
|
|
38
38
|
this.websiteUserRoles = new WebsiteUserRolesAPI.WebsiteUserRoles(this._client);
|
|
39
39
|
}
|
|
40
|
-
/**
|
|
41
|
-
* Creates a new website
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```ts
|
|
45
|
-
* const website = await client.websites.create({
|
|
46
|
-
* name: 'My New Website',
|
|
47
|
-
* });
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
create(body, options) {
|
|
51
|
-
return this._client.post('/api/websites', { body, ...options });
|
|
52
|
-
}
|
|
53
40
|
list(query = {}, options) {
|
|
54
41
|
if ((0, core_1.isRequestOptions)(query)) {
|
|
55
42
|
return this.list({}, query);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websites.js","sourceRoot":"","sources":["../../src/resources/websites/websites.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAE9C,gFAA+D;AAC/D,
|
|
1
|
+
{"version":3,"file":"websites.js","sourceRoot":"","sources":["../../src/resources/websites/websites.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAE9C,gFAA+D;AAC/D,kEAA2D;AAC3D,6EAA4D;AAC5D,gEAM8B;AAE9B,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,uBAAkB,GAA6C,IAAI,qBAAqB,CAAC,kBAAkB,CACzG,IAAI,CAAC,OAAO,CACb,CAAC;QACF,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;IAsBJ,CAAC;IATC,IAAI,CACF,QAAiD,EAAE,EACnD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;CACF;AA5BD,4BA4BC;AAiHD,QAAQ,CAAC,kBAAkB,GAAG,wCAAkB,CAAC;AACjD,QAAQ,CAAC,gBAAgB,GAAG,qCAAgB,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
3
|
import { isRequestOptions } from "../../core.mjs";
|
|
4
4
|
import * as WebsiteCollectionsAPI from "./website-collections.mjs";
|
|
5
|
-
import { WebsiteCollections
|
|
5
|
+
import { WebsiteCollections } from "./website-collections.mjs";
|
|
6
6
|
import * as WebsiteUserRolesAPI from "./website-user-roles.mjs";
|
|
7
7
|
import { WebsiteUserRoles, } from "./website-user-roles.mjs";
|
|
8
8
|
export class Websites extends APIResource {
|
|
@@ -11,19 +11,6 @@ export class Websites extends APIResource {
|
|
|
11
11
|
this.websiteCollections = new WebsiteCollectionsAPI.WebsiteCollections(this._client);
|
|
12
12
|
this.websiteUserRoles = new WebsiteUserRolesAPI.WebsiteUserRoles(this._client);
|
|
13
13
|
}
|
|
14
|
-
/**
|
|
15
|
-
* Creates a new website
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* const website = await client.websites.create({
|
|
20
|
-
* name: 'My New Website',
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
create(body, options) {
|
|
25
|
-
return this._client.post('/api/websites', { body, ...options });
|
|
26
|
-
}
|
|
27
14
|
list(query = {}, options) {
|
|
28
15
|
if (isRequestOptions(query)) {
|
|
29
16
|
return this.list({}, query);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websites.mjs","sourceRoot":"","sources":["../../src/resources/websites/websites.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,KAAK,qBAAqB;OAC1B,
|
|
1
|
+
{"version":3,"file":"websites.mjs","sourceRoot":"","sources":["../../src/resources/websites/websites.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,KAAK,qBAAqB;OAC1B,EAAE,kBAAkB,EAAE;OACtB,KAAK,mBAAmB;OACxB,EAKL,gBAAgB,GACjB;AAED,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,uBAAkB,GAA6C,IAAI,qBAAqB,CAAC,kBAAkB,CACzG,IAAI,CAAC,OAAO,CACb,CAAC;QACF,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;IAsBJ,CAAC;IATC,IAAI,CACF,QAAiD,EAAE,EACnD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;CACF;AAiHD,QAAQ,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;AACjD,QAAQ,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
|
package/src/index.ts
CHANGED
|
@@ -37,13 +37,7 @@ import {
|
|
|
37
37
|
UserVerifyResponse,
|
|
38
38
|
Users,
|
|
39
39
|
} from './resources/users/users';
|
|
40
|
-
import {
|
|
41
|
-
WebsiteCreateParams,
|
|
42
|
-
WebsiteCreateResponse,
|
|
43
|
-
WebsiteListParams,
|
|
44
|
-
WebsiteListResponse,
|
|
45
|
-
Websites,
|
|
46
|
-
} from './resources/websites/websites';
|
|
40
|
+
import { WebsiteListParams, WebsiteListResponse, Websites } from './resources/websites/websites';
|
|
47
41
|
|
|
48
42
|
export interface ClientOptions {
|
|
49
43
|
/**
|
|
@@ -281,9 +275,7 @@ export declare namespace SnagSolutions {
|
|
|
281
275
|
|
|
282
276
|
export {
|
|
283
277
|
Websites as Websites,
|
|
284
|
-
type WebsiteCreateResponse as WebsiteCreateResponse,
|
|
285
278
|
type WebsiteListResponse as WebsiteListResponse,
|
|
286
|
-
type WebsiteCreateParams as WebsiteCreateParams,
|
|
287
279
|
type WebsiteListParams as WebsiteListParams,
|
|
288
280
|
};
|
|
289
281
|
}
|
|
@@ -9,8 +9,6 @@ import {
|
|
|
9
9
|
WebsiteUserAttributeCreateResponse,
|
|
10
10
|
WebsiteUserAttributeDeleteParams,
|
|
11
11
|
WebsiteUserAttributeDeleteResponse,
|
|
12
|
-
WebsiteUserAttributeListParams,
|
|
13
|
-
WebsiteUserAttributeListResponse,
|
|
14
12
|
WebsiteUserAttributes,
|
|
15
13
|
} from './website-user-attributes/website-user-attributes';
|
|
16
14
|
|
|
@@ -427,10 +425,8 @@ export declare namespace Auctions {
|
|
|
427
425
|
export {
|
|
428
426
|
WebsiteUserAttributes as WebsiteUserAttributes,
|
|
429
427
|
type WebsiteUserAttributeCreateResponse as WebsiteUserAttributeCreateResponse,
|
|
430
|
-
type WebsiteUserAttributeListResponse as WebsiteUserAttributeListResponse,
|
|
431
428
|
type WebsiteUserAttributeDeleteResponse as WebsiteUserAttributeDeleteResponse,
|
|
432
429
|
type WebsiteUserAttributeCreateParams as WebsiteUserAttributeCreateParams,
|
|
433
|
-
type WebsiteUserAttributeListParams as WebsiteUserAttributeListParams,
|
|
434
430
|
type WebsiteUserAttributeDeleteParams as WebsiteUserAttributeDeleteParams,
|
|
435
431
|
};
|
|
436
432
|
}
|
|
@@ -10,9 +10,7 @@ export {
|
|
|
10
10
|
export {
|
|
11
11
|
WebsiteUserAttributes,
|
|
12
12
|
type WebsiteUserAttributeCreateResponse,
|
|
13
|
-
type WebsiteUserAttributeListResponse,
|
|
14
13
|
type WebsiteUserAttributeDeleteResponse,
|
|
15
14
|
type WebsiteUserAttributeCreateParams,
|
|
16
|
-
type WebsiteUserAttributeListParams,
|
|
17
15
|
type WebsiteUserAttributeDeleteParams,
|
|
18
16
|
} from './website-user-attributes/index';
|
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
4
|
-
Values,
|
|
5
|
-
type ValueCreateResponse,
|
|
6
|
-
type ValueListResponse,
|
|
7
|
-
type ValueCreateParams,
|
|
8
|
-
type ValueListParams,
|
|
9
|
-
} from './values';
|
|
3
|
+
export { Values, type ValueCreateResponse, type ValueCreateParams } from './values';
|
|
10
4
|
export {
|
|
11
5
|
WebsiteUserAttributes,
|
|
12
6
|
type WebsiteUserAttributeCreateResponse,
|
|
13
|
-
type WebsiteUserAttributeListResponse,
|
|
14
7
|
type WebsiteUserAttributeDeleteResponse,
|
|
15
8
|
type WebsiteUserAttributeCreateParams,
|
|
16
|
-
type WebsiteUserAttributeListParams,
|
|
17
9
|
type WebsiteUserAttributeDeleteParams,
|
|
18
10
|
} from './website-user-attributes';
|
|
@@ -30,21 +30,6 @@ export class Values extends APIResource {
|
|
|
30
30
|
create(body: ValueCreateParams, options?: Core.RequestOptions): Core.APIPromise<ValueCreateResponse> {
|
|
31
31
|
return this._client.post('/api/website_user_attributes/values', { body, ...options });
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Get all website user attribute values
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```ts
|
|
39
|
-
* const values =
|
|
40
|
-
* await client.auctions.websiteUserAttributes.values.list({
|
|
41
|
-
* userIds: '123e4567-e89b-12d3-a456-426614174004',
|
|
42
|
-
* });
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
list(query: ValueListParams, options?: Core.RequestOptions): Core.APIPromise<ValueListResponse> {
|
|
46
|
-
return this._client.get('/api/website_user_attributes/values', { query, ...options });
|
|
47
|
-
}
|
|
48
33
|
}
|
|
49
34
|
|
|
50
35
|
export type ValueCreateResponse = Array<ValueCreateResponse.ValueCreateResponseItem>;
|
|
@@ -69,32 +54,6 @@ export namespace ValueCreateResponse {
|
|
|
69
54
|
}
|
|
70
55
|
}
|
|
71
56
|
|
|
72
|
-
export interface ValueListResponse {
|
|
73
|
-
data: Array<ValueListResponse.Data>;
|
|
74
|
-
|
|
75
|
-
hasNextPage: boolean;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export namespace ValueListResponse {
|
|
79
|
-
export interface Data {
|
|
80
|
-
id: string;
|
|
81
|
-
|
|
82
|
-
createdAt: string;
|
|
83
|
-
|
|
84
|
-
customFieldId: string;
|
|
85
|
-
|
|
86
|
-
organizationId: string;
|
|
87
|
-
|
|
88
|
-
updatedAt: string;
|
|
89
|
-
|
|
90
|
-
userId: string;
|
|
91
|
-
|
|
92
|
-
value: string;
|
|
93
|
-
|
|
94
|
-
websiteId: string;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
57
|
export interface ValueCreateParams {
|
|
99
58
|
data: Array<ValueCreateParams.Data>;
|
|
100
59
|
|
|
@@ -133,33 +92,6 @@ export namespace ValueCreateParams {
|
|
|
133
92
|
}
|
|
134
93
|
}
|
|
135
94
|
|
|
136
|
-
export interface ValueListParams {
|
|
137
|
-
/**
|
|
138
|
-
* Unique identifier for the user
|
|
139
|
-
*/
|
|
140
|
-
userIds: string | Array<string>;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Number of website user attributes to return
|
|
144
|
-
*/
|
|
145
|
-
limit?: string;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Unique identifier for the organization
|
|
149
|
-
*/
|
|
150
|
-
organizationId?: string;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Unique identifier for the website
|
|
154
|
-
*/
|
|
155
|
-
websiteId?: string;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
95
|
export declare namespace Values {
|
|
159
|
-
export {
|
|
160
|
-
type ValueCreateResponse as ValueCreateResponse,
|
|
161
|
-
type ValueListResponse as ValueListResponse,
|
|
162
|
-
type ValueCreateParams as ValueCreateParams,
|
|
163
|
-
type ValueListParams as ValueListParams,
|
|
164
|
-
};
|
|
96
|
+
export { type ValueCreateResponse as ValueCreateResponse, type ValueCreateParams as ValueCreateParams };
|
|
165
97
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../resource';
|
|
4
|
-
import { isRequestOptions } from '../../../core';
|
|
5
4
|
import * as Core from '../../../core';
|
|
6
5
|
import * as ValuesAPI from './values';
|
|
7
|
-
import { ValueCreateParams, ValueCreateResponse,
|
|
6
|
+
import { ValueCreateParams, ValueCreateResponse, Values } from './values';
|
|
8
7
|
|
|
9
8
|
export class WebsiteUserAttributes extends APIResource {
|
|
10
9
|
values: ValuesAPI.Values = new ValuesAPI.Values(this._client);
|
|
@@ -27,30 +26,6 @@ export class WebsiteUserAttributes extends APIResource {
|
|
|
27
26
|
return this._client.post('/api/website_user_attributes', { body, ...options });
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
/**
|
|
31
|
-
* Get all website user attributes
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```ts
|
|
35
|
-
* const websiteUserAttributes =
|
|
36
|
-
* await client.auctions.websiteUserAttributes.list();
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
list(
|
|
40
|
-
query?: WebsiteUserAttributeListParams,
|
|
41
|
-
options?: Core.RequestOptions,
|
|
42
|
-
): Core.APIPromise<WebsiteUserAttributeListResponse>;
|
|
43
|
-
list(options?: Core.RequestOptions): Core.APIPromise<WebsiteUserAttributeListResponse>;
|
|
44
|
-
list(
|
|
45
|
-
query: WebsiteUserAttributeListParams | Core.RequestOptions = {},
|
|
46
|
-
options?: Core.RequestOptions,
|
|
47
|
-
): Core.APIPromise<WebsiteUserAttributeListResponse> {
|
|
48
|
-
if (isRequestOptions(query)) {
|
|
49
|
-
return this.list({}, query);
|
|
50
|
-
}
|
|
51
|
-
return this._client.get('/api/website_user_attributes', { query, ...options });
|
|
52
|
-
}
|
|
53
|
-
|
|
54
29
|
/**
|
|
55
30
|
* Delete a website user attribute
|
|
56
31
|
*
|
|
@@ -95,30 +70,6 @@ export namespace WebsiteUserAttributeCreateResponse {
|
|
|
95
70
|
}
|
|
96
71
|
}
|
|
97
72
|
|
|
98
|
-
export interface WebsiteUserAttributeListResponse {
|
|
99
|
-
data: Array<WebsiteUserAttributeListResponse.Data>;
|
|
100
|
-
|
|
101
|
-
hasNextPage: boolean;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export namespace WebsiteUserAttributeListResponse {
|
|
105
|
-
export interface Data {
|
|
106
|
-
id: string;
|
|
107
|
-
|
|
108
|
-
createdAt: string;
|
|
109
|
-
|
|
110
|
-
deletedAt: string | null;
|
|
111
|
-
|
|
112
|
-
label: string;
|
|
113
|
-
|
|
114
|
-
organizationId: string;
|
|
115
|
-
|
|
116
|
-
updatedAt: string;
|
|
117
|
-
|
|
118
|
-
websiteId: string;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
73
|
export interface WebsiteUserAttributeDeleteResponse {
|
|
123
74
|
message: string;
|
|
124
75
|
}
|
|
@@ -151,23 +102,6 @@ export namespace WebsiteUserAttributeCreateParams {
|
|
|
151
102
|
}
|
|
152
103
|
}
|
|
153
104
|
|
|
154
|
-
export interface WebsiteUserAttributeListParams {
|
|
155
|
-
/**
|
|
156
|
-
* Number of website user attributes to return
|
|
157
|
-
*/
|
|
158
|
-
limit?: string;
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Unique identifier for the organization
|
|
162
|
-
*/
|
|
163
|
-
organizationId?: string;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Unique identifier for the website
|
|
167
|
-
*/
|
|
168
|
-
websiteId?: string;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
105
|
export interface WebsiteUserAttributeDeleteParams {
|
|
172
106
|
/**
|
|
173
107
|
* Unique identifier for the website user attribute
|
|
@@ -190,18 +124,14 @@ WebsiteUserAttributes.Values = Values;
|
|
|
190
124
|
export declare namespace WebsiteUserAttributes {
|
|
191
125
|
export {
|
|
192
126
|
type WebsiteUserAttributeCreateResponse as WebsiteUserAttributeCreateResponse,
|
|
193
|
-
type WebsiteUserAttributeListResponse as WebsiteUserAttributeListResponse,
|
|
194
127
|
type WebsiteUserAttributeDeleteResponse as WebsiteUserAttributeDeleteResponse,
|
|
195
128
|
type WebsiteUserAttributeCreateParams as WebsiteUserAttributeCreateParams,
|
|
196
|
-
type WebsiteUserAttributeListParams as WebsiteUserAttributeListParams,
|
|
197
129
|
type WebsiteUserAttributeDeleteParams as WebsiteUserAttributeDeleteParams,
|
|
198
130
|
};
|
|
199
131
|
|
|
200
132
|
export {
|
|
201
133
|
Values as Values,
|
|
202
134
|
type ValueCreateResponse as ValueCreateResponse,
|
|
203
|
-
type ValueListResponse as ValueListResponse,
|
|
204
135
|
type ValueCreateParams as ValueCreateParams,
|
|
205
|
-
type ValueListParams as ValueListParams,
|
|
206
136
|
};
|
|
207
137
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -31,10 +31,4 @@ export {
|
|
|
31
31
|
type UserDisconnectParams,
|
|
32
32
|
type UserVerifyParams,
|
|
33
33
|
} from './users/users';
|
|
34
|
-
export {
|
|
35
|
-
Websites,
|
|
36
|
-
type WebsiteCreateResponse,
|
|
37
|
-
type WebsiteListResponse,
|
|
38
|
-
type WebsiteCreateParams,
|
|
39
|
-
type WebsiteListParams,
|
|
40
|
-
} from './websites/websites';
|
|
34
|
+
export { Websites, type WebsiteListResponse, type WebsiteListParams } from './websites/websites';
|
|
@@ -98,8 +98,6 @@ export {
|
|
|
98
98
|
Transactions,
|
|
99
99
|
type TransactionCreateTransactionResponse,
|
|
100
100
|
type TransactionGetTransactionEntriesResponse,
|
|
101
|
-
type TransactionListRuleChainsResponse,
|
|
102
101
|
type TransactionCreateTransactionParams,
|
|
103
102
|
type TransactionGetTransactionEntriesParams,
|
|
104
|
-
type TransactionListRuleChainsParams,
|
|
105
103
|
} from './transactions/index';
|
|
@@ -110,8 +110,6 @@ import {
|
|
|
110
110
|
TransactionCreateTransactionResponse,
|
|
111
111
|
TransactionGetTransactionEntriesParams,
|
|
112
112
|
TransactionGetTransactionEntriesResponse,
|
|
113
|
-
TransactionListRuleChainsParams,
|
|
114
|
-
TransactionListRuleChainsResponse,
|
|
115
113
|
Transactions,
|
|
116
114
|
} from './transactions/transactions';
|
|
117
115
|
|
|
@@ -159,10 +157,8 @@ export declare namespace Loyalty {
|
|
|
159
157
|
Transactions as Transactions,
|
|
160
158
|
type TransactionCreateTransactionResponse as TransactionCreateTransactionResponse,
|
|
161
159
|
type TransactionGetTransactionEntriesResponse as TransactionGetTransactionEntriesResponse,
|
|
162
|
-
type TransactionListRuleChainsResponse as TransactionListRuleChainsResponse,
|
|
163
160
|
type TransactionCreateTransactionParams as TransactionCreateTransactionParams,
|
|
164
161
|
type TransactionGetTransactionEntriesParams as TransactionGetTransactionEntriesParams,
|
|
165
|
-
type TransactionListRuleChainsParams as TransactionListRuleChainsParams,
|
|
166
162
|
};
|
|
167
163
|
|
|
168
164
|
export {
|
|
@@ -3596,11 +3596,15 @@ export namespace RuleGetStatusResponse {
|
|
|
3596
3596
|
export interface Data {
|
|
3597
3597
|
loyaltyRuleId: string;
|
|
3598
3598
|
|
|
3599
|
-
status: 'pending' | 'processing' | 'completed' | 'failed';
|
|
3600
|
-
|
|
3601
3599
|
userId: string;
|
|
3602
3600
|
|
|
3603
3601
|
message?: string;
|
|
3602
|
+
|
|
3603
|
+
/**
|
|
3604
|
+
* Status of the queued job, this is only returned if the job is queued and being
|
|
3605
|
+
* processed, this wil be retained for 10 minutes after the job is completed
|
|
3606
|
+
*/
|
|
3607
|
+
status?: 'pending' | 'processing' | 'completed' | 'failed';
|
|
3604
3608
|
}
|
|
3605
3609
|
}
|
|
3606
3610
|
|
|
@@ -5966,11 +5970,6 @@ export interface RuleListParams {
|
|
|
5966
5970
|
*/
|
|
5967
5971
|
collectionAddress?: string;
|
|
5968
5972
|
|
|
5969
|
-
/**
|
|
5970
|
-
* If true this will only return loyalty rule chains
|
|
5971
|
-
*/
|
|
5972
|
-
includeLoyaltyRuleChains?: 'true' | 'false';
|
|
5973
|
-
|
|
5974
5973
|
/**
|
|
5975
5974
|
* If true this will only return active rules, the rules for which the startTime is
|
|
5976
5975
|
* in the past and the endTime is in the future
|
|
@@ -6071,8 +6070,25 @@ export interface RuleCompleteParams {
|
|
|
6071
6070
|
}
|
|
6072
6071
|
|
|
6073
6072
|
export interface RuleGetStatusParams {
|
|
6073
|
+
/**
|
|
6074
|
+
* Number of items to return
|
|
6075
|
+
*/
|
|
6076
|
+
limit?: number | null;
|
|
6077
|
+
|
|
6078
|
+
/**
|
|
6079
|
+
* Unique identifier for the loyalty rule[s]
|
|
6080
|
+
*/
|
|
6081
|
+
loyaltyRuleId?: string | Array<string>;
|
|
6082
|
+
|
|
6074
6083
|
organizationId?: string;
|
|
6075
6084
|
|
|
6085
|
+
/**
|
|
6086
|
+
* Starting after item
|
|
6087
|
+
*/
|
|
6088
|
+
startingAfter?: string;
|
|
6089
|
+
|
|
6090
|
+
userGroupId?: string;
|
|
6091
|
+
|
|
6076
6092
|
userId?: string;
|
|
6077
6093
|
|
|
6078
6094
|
walletAddress?: string;
|
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
4
|
-
RuleStatuses,
|
|
5
|
-
type RuleStatusUpdateResponse,
|
|
6
|
-
type RuleStatusListResponse,
|
|
7
|
-
type RuleStatusUpdateParams,
|
|
8
|
-
type RuleStatusListParams,
|
|
9
|
-
} from './rule-statuses';
|
|
3
|
+
export { RuleStatuses, type RuleStatusUpdateResponse, type RuleStatusUpdateParams } from './rule-statuses';
|
|
10
4
|
export {
|
|
11
5
|
Transactions,
|
|
12
6
|
type TransactionCreateTransactionResponse,
|
|
13
7
|
type TransactionGetTransactionEntriesResponse,
|
|
14
|
-
type TransactionListRuleChainsResponse,
|
|
15
8
|
type TransactionCreateTransactionParams,
|
|
16
9
|
type TransactionGetTransactionEntriesParams,
|
|
17
|
-
type TransactionListRuleChainsParams,
|
|
18
10
|
} from './transactions';
|