@snagsolutions/sdk 0.1.0-alpha.151 → 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 +25 -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/rule-edits.d.ts +16 -0
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +4 -0
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rules.d.ts +38 -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/rule-edits.ts +20 -0
- package/src/resources/loyalty/rule-groups.ts +5 -0
- package/src/resources/loyalty/rules.ts +48 -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
|
@@ -4,12 +4,7 @@ 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 {
|
|
8
|
-
WebsiteCollectionCreateParams,
|
|
9
|
-
WebsiteCollectionListParams,
|
|
10
|
-
WebsiteCollectionListResponse,
|
|
11
|
-
WebsiteCollections,
|
|
12
|
-
} from './website-collections';
|
|
7
|
+
import { WebsiteCollections } from './website-collections';
|
|
13
8
|
import * as WebsiteUserRolesAPI from './website-user-roles';
|
|
14
9
|
import {
|
|
15
10
|
WebsiteUserRoleAssignParams,
|
|
@@ -27,20 +22,6 @@ export class Websites extends APIResource {
|
|
|
27
22
|
this._client,
|
|
28
23
|
);
|
|
29
24
|
|
|
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
|
-
|
|
44
25
|
/**
|
|
45
26
|
* Returns a list of websites. Includes optional query parameters for filtering and
|
|
46
27
|
* pagination.
|
|
@@ -63,78 +44,6 @@ export class Websites extends APIResource {
|
|
|
63
44
|
}
|
|
64
45
|
}
|
|
65
46
|
|
|
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
|
-
|
|
138
47
|
/**
|
|
139
48
|
* Response schema for fetching websites
|
|
140
49
|
*/
|
|
@@ -224,43 +133,6 @@ export namespace WebsiteListResponse {
|
|
|
224
133
|
}
|
|
225
134
|
}
|
|
226
135
|
|
|
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
|
-
|
|
264
136
|
export interface WebsiteListParams {
|
|
265
137
|
/**
|
|
266
138
|
* Number of items to return
|
|
@@ -287,19 +159,9 @@ Websites.WebsiteCollections = WebsiteCollections;
|
|
|
287
159
|
Websites.WebsiteUserRoles = WebsiteUserRoles;
|
|
288
160
|
|
|
289
161
|
export declare namespace Websites {
|
|
290
|
-
export {
|
|
291
|
-
type WebsiteCreateResponse as WebsiteCreateResponse,
|
|
292
|
-
type WebsiteListResponse as WebsiteListResponse,
|
|
293
|
-
type WebsiteCreateParams as WebsiteCreateParams,
|
|
294
|
-
type WebsiteListParams as WebsiteListParams,
|
|
295
|
-
};
|
|
162
|
+
export { type WebsiteListResponse as WebsiteListResponse, type WebsiteListParams as WebsiteListParams };
|
|
296
163
|
|
|
297
|
-
export {
|
|
298
|
-
WebsiteCollections as WebsiteCollections,
|
|
299
|
-
type WebsiteCollectionListResponse as WebsiteCollectionListResponse,
|
|
300
|
-
type WebsiteCollectionCreateParams as WebsiteCollectionCreateParams,
|
|
301
|
-
type WebsiteCollectionListParams as WebsiteCollectionListParams,
|
|
302
|
-
};
|
|
164
|
+
export { WebsiteCollections as WebsiteCollections };
|
|
303
165
|
|
|
304
166
|
export {
|
|
305
167
|
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.153'; // 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.153";
|
|
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.153'; // 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.153'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|