@snagsolutions/sdk 0.1.0-alpha.172 → 0.1.0-alpha.174
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 +16 -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 +47 -1
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/values.js +14 -0
- package/resources/auctions/website-user-attributes/values.js.map +1 -1
- package/resources/auctions/website-user-attributes/values.mjs +14 -0
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +43 -3
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.js +7 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +7 -0
- 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/rule-groups.d.ts +1 -1
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rules.d.ts +22 -6
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/transactions/index.d.ts +1 -1
- 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.map +1 -1
- package/resources/loyalty/transactions/transactions.d.ts +120 -2
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions/transactions.js +15 -0
- package/resources/loyalty/transactions/transactions.js.map +1 -1
- package/resources/loyalty/transactions/transactions.mjs +15 -0
- package/resources/loyalty/transactions/transactions.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 +90 -0
- package/resources/websites/website-collections.d.ts.map +1 -1
- package/resources/websites/website-collections.js +37 -0
- package/resources/websites/website-collections.js.map +1 -1
- package/resources/websites/website-collections.mjs +37 -0
- package/resources/websites/website-collections.mjs.map +1 -1
- package/resources/websites/websites.d.ts +105 -3
- package/resources/websites/websites.d.ts.map +1 -1
- package/resources/websites/websites.js +13 -0
- package/resources/websites/websites.js.map +1 -1
- package/resources/websites/websites.mjs +14 -1
- package/resources/websites/websites.mjs.map +1 -1
- package/src/index.ts +9 -1
- package/src/resources/auctions/auctions.ts +4 -0
- package/src/resources/auctions/index.ts +2 -0
- package/src/resources/auctions/website-user-attributes/index.ts +9 -1
- package/src/resources/auctions/website-user-attributes/values.ts +69 -1
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +71 -1
- package/src/resources/index.ts +7 -1
- package/src/resources/loyalty/index.ts +2 -0
- package/src/resources/loyalty/loyalty.ts +4 -0
- package/src/resources/loyalty/rule-groups.ts +1 -0
- package/src/resources/loyalty/rules.ts +26 -4
- package/src/resources/loyalty/transactions/index.ts +2 -0
- package/src/resources/loyalty/transactions/transactions.ts +153 -0
- package/src/resources/websites/index.ts +13 -2
- package/src/resources/websites/website-collections.ts +183 -1
- package/src/resources/websites/websites.ts +141 -3
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -4,7 +4,12 @@ import { APIResource } from '../../resource';
|
|
|
4
4
|
import { isRequestOptions } from '../../core';
|
|
5
5
|
import * as Core from '../../core';
|
|
6
6
|
import * as WebsiteCollectionsAPI from './website-collections';
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
WebsiteCollectionCreateParams,
|
|
9
|
+
WebsiteCollectionListParams,
|
|
10
|
+
WebsiteCollectionListResponse,
|
|
11
|
+
WebsiteCollections,
|
|
12
|
+
} from './website-collections';
|
|
8
13
|
import * as WebsiteUserRolesAPI from './website-user-roles';
|
|
9
14
|
import {
|
|
10
15
|
WebsiteUserRoleAssignParams,
|
|
@@ -22,6 +27,20 @@ export class Websites extends APIResource {
|
|
|
22
27
|
this._client,
|
|
23
28
|
);
|
|
24
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Creates a new website
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const website = await client.websites.create({
|
|
36
|
+
* name: 'My New Website',
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
create(body: WebsiteCreateParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteCreateResponse> {
|
|
41
|
+
return this._client.post('/api/websites', { body, ...options });
|
|
42
|
+
}
|
|
43
|
+
|
|
25
44
|
/**
|
|
26
45
|
* Returns a list of websites. Includes optional query parameters for filtering and
|
|
27
46
|
* pagination.
|
|
@@ -44,6 +63,78 @@ export class Websites extends APIResource {
|
|
|
44
63
|
}
|
|
45
64
|
}
|
|
46
65
|
|
|
66
|
+
/**
|
|
67
|
+
* Schema representing a website
|
|
68
|
+
*/
|
|
69
|
+
export interface WebsiteCreateResponse {
|
|
70
|
+
/**
|
|
71
|
+
* Website ID
|
|
72
|
+
*/
|
|
73
|
+
id: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Counts of related entities
|
|
77
|
+
*/
|
|
78
|
+
_count: WebsiteCreateResponse._Count;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Collections associated with the website
|
|
82
|
+
*/
|
|
83
|
+
collections: Array<WebsiteCreateResponse.Collection>;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Website name
|
|
87
|
+
*/
|
|
88
|
+
name: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Date when terms were signed
|
|
92
|
+
*/
|
|
93
|
+
termsSignedAt: string | null;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export namespace WebsiteCreateResponse {
|
|
97
|
+
/**
|
|
98
|
+
* Counts of related entities
|
|
99
|
+
*/
|
|
100
|
+
export interface _Count {
|
|
101
|
+
/**
|
|
102
|
+
* Count of minting contract assets
|
|
103
|
+
*/
|
|
104
|
+
mintingContractAssets: number;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Schema representing a collection
|
|
109
|
+
*/
|
|
110
|
+
export interface Collection {
|
|
111
|
+
/**
|
|
112
|
+
* Collection ID
|
|
113
|
+
*/
|
|
114
|
+
id: string;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* URL of the collection image
|
|
118
|
+
*/
|
|
119
|
+
imageUrl: string | null;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Collection name
|
|
123
|
+
*/
|
|
124
|
+
name: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Royalty fee percentage
|
|
128
|
+
*/
|
|
129
|
+
royaltyFee: number;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Address to receive royalty fees
|
|
133
|
+
*/
|
|
134
|
+
royaltyFeeAddress: string;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
47
138
|
/**
|
|
48
139
|
* Response schema for fetching websites
|
|
49
140
|
*/
|
|
@@ -133,6 +224,43 @@ export namespace WebsiteListResponse {
|
|
|
133
224
|
}
|
|
134
225
|
}
|
|
135
226
|
|
|
227
|
+
export interface WebsiteCreateParams {
|
|
228
|
+
/**
|
|
229
|
+
* Name of the website
|
|
230
|
+
*/
|
|
231
|
+
name: string;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Discord URL of the website account
|
|
235
|
+
*/
|
|
236
|
+
discordUrl?: string;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Home URL of the official website
|
|
240
|
+
*/
|
|
241
|
+
homeUrl?: string;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Instagram username of the website account
|
|
245
|
+
*/
|
|
246
|
+
instagramUsername?: string;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Organization ID for which this website is being created
|
|
250
|
+
*/
|
|
251
|
+
organizationId?: string;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Telegram URL of the website account
|
|
255
|
+
*/
|
|
256
|
+
telegramUrl?: string;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Twitter username of the website account
|
|
260
|
+
*/
|
|
261
|
+
twitterUsername?: string;
|
|
262
|
+
}
|
|
263
|
+
|
|
136
264
|
export interface WebsiteListParams {
|
|
137
265
|
/**
|
|
138
266
|
* Number of items to return
|
|
@@ -159,9 +287,19 @@ Websites.WebsiteCollections = WebsiteCollections;
|
|
|
159
287
|
Websites.WebsiteUserRoles = WebsiteUserRoles;
|
|
160
288
|
|
|
161
289
|
export declare namespace Websites {
|
|
162
|
-
export {
|
|
290
|
+
export {
|
|
291
|
+
type WebsiteCreateResponse as WebsiteCreateResponse,
|
|
292
|
+
type WebsiteListResponse as WebsiteListResponse,
|
|
293
|
+
type WebsiteCreateParams as WebsiteCreateParams,
|
|
294
|
+
type WebsiteListParams as WebsiteListParams,
|
|
295
|
+
};
|
|
163
296
|
|
|
164
|
-
export {
|
|
297
|
+
export {
|
|
298
|
+
WebsiteCollections as WebsiteCollections,
|
|
299
|
+
type WebsiteCollectionListResponse as WebsiteCollectionListResponse,
|
|
300
|
+
type WebsiteCollectionCreateParams as WebsiteCollectionCreateParams,
|
|
301
|
+
type WebsiteCollectionListParams as WebsiteCollectionListParams,
|
|
302
|
+
};
|
|
165
303
|
|
|
166
304
|
export {
|
|
167
305
|
WebsiteUserRoles as WebsiteUserRoles,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.174'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.174";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.174'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.174'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|