@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.
Files changed (107) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/index.d.mts +2 -2
  3. package/index.d.ts +2 -2
  4. package/index.d.ts.map +1 -1
  5. package/index.js.map +1 -1
  6. package/index.mjs +1 -1
  7. package/index.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/auctions/auctions.d.ts +2 -2
  10. package/resources/auctions/auctions.d.ts.map +1 -1
  11. package/resources/auctions/auctions.js.map +1 -1
  12. package/resources/auctions/auctions.mjs.map +1 -1
  13. package/resources/auctions/index.d.ts +1 -1
  14. package/resources/auctions/index.d.ts.map +1 -1
  15. package/resources/auctions/index.js.map +1 -1
  16. package/resources/auctions/index.mjs.map +1 -1
  17. package/resources/auctions/website-user-attributes/index.d.ts +2 -2
  18. package/resources/auctions/website-user-attributes/index.d.ts.map +1 -1
  19. package/resources/auctions/website-user-attributes/index.js.map +1 -1
  20. package/resources/auctions/website-user-attributes/index.mjs +1 -1
  21. package/resources/auctions/website-user-attributes/index.mjs.map +1 -1
  22. package/resources/auctions/website-user-attributes/values.d.ts +1 -47
  23. package/resources/auctions/website-user-attributes/values.d.ts.map +1 -1
  24. package/resources/auctions/website-user-attributes/values.js +0 -14
  25. package/resources/auctions/website-user-attributes/values.js.map +1 -1
  26. package/resources/auctions/website-user-attributes/values.mjs +0 -14
  27. package/resources/auctions/website-user-attributes/values.mjs.map +1 -1
  28. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +3 -43
  29. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -1
  30. package/resources/auctions/website-user-attributes/website-user-attributes.js +0 -7
  31. package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -1
  32. package/resources/auctions/website-user-attributes/website-user-attributes.mjs +0 -7
  33. package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -1
  34. package/resources/index.d.ts +1 -1
  35. package/resources/index.d.ts.map +1 -1
  36. package/resources/index.js.map +1 -1
  37. package/resources/index.mjs +1 -1
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/loyalty/index.d.ts +1 -1
  40. package/resources/loyalty/index.d.ts.map +1 -1
  41. package/resources/loyalty/index.js.map +1 -1
  42. package/resources/loyalty/index.mjs.map +1 -1
  43. package/resources/loyalty/loyalty.d.ts +2 -2
  44. package/resources/loyalty/loyalty.d.ts.map +1 -1
  45. package/resources/loyalty/loyalty.js.map +1 -1
  46. package/resources/loyalty/loyalty.mjs.map +1 -1
  47. package/resources/loyalty/rules.d.ts +18 -5
  48. package/resources/loyalty/rules.d.ts.map +1 -1
  49. package/resources/loyalty/transactions/index.d.ts +2 -2
  50. package/resources/loyalty/transactions/index.d.ts.map +1 -1
  51. package/resources/loyalty/transactions/index.js.map +1 -1
  52. package/resources/loyalty/transactions/index.mjs +1 -1
  53. package/resources/loyalty/transactions/index.mjs.map +1 -1
  54. package/resources/loyalty/transactions/rule-statuses.d.ts +1 -60
  55. package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -1
  56. package/resources/loyalty/transactions/rule-statuses.js +0 -7
  57. package/resources/loyalty/transactions/rule-statuses.js.map +1 -1
  58. package/resources/loyalty/transactions/rule-statuses.mjs +0 -7
  59. package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -1
  60. package/resources/loyalty/transactions/transactions.d.ts +3 -121
  61. package/resources/loyalty/transactions/transactions.d.ts.map +1 -1
  62. package/resources/loyalty/transactions/transactions.js +0 -15
  63. package/resources/loyalty/transactions/transactions.js.map +1 -1
  64. package/resources/loyalty/transactions/transactions.mjs +1 -16
  65. package/resources/loyalty/transactions/transactions.mjs.map +1 -1
  66. package/resources/users/users.d.ts +14 -0
  67. package/resources/users/users.d.ts.map +1 -1
  68. package/resources/users/users.js.map +1 -1
  69. package/resources/users/users.mjs.map +1 -1
  70. package/resources/websites/index.d.ts +2 -2
  71. package/resources/websites/index.d.ts.map +1 -1
  72. package/resources/websites/index.js.map +1 -1
  73. package/resources/websites/index.mjs +2 -2
  74. package/resources/websites/index.mjs.map +1 -1
  75. package/resources/websites/website-collections.d.ts +0 -90
  76. package/resources/websites/website-collections.d.ts.map +1 -1
  77. package/resources/websites/website-collections.js +0 -37
  78. package/resources/websites/website-collections.js.map +1 -1
  79. package/resources/websites/website-collections.mjs +0 -37
  80. package/resources/websites/website-collections.mjs.map +1 -1
  81. package/resources/websites/websites.d.ts +3 -105
  82. package/resources/websites/websites.d.ts.map +1 -1
  83. package/resources/websites/websites.js +0 -13
  84. package/resources/websites/websites.js.map +1 -1
  85. package/resources/websites/websites.mjs +1 -14
  86. package/resources/websites/websites.mjs.map +1 -1
  87. package/src/index.ts +1 -9
  88. package/src/resources/auctions/auctions.ts +0 -4
  89. package/src/resources/auctions/index.ts +0 -2
  90. package/src/resources/auctions/website-user-attributes/index.ts +1 -9
  91. package/src/resources/auctions/website-user-attributes/values.ts +1 -69
  92. package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +1 -71
  93. package/src/resources/index.ts +1 -7
  94. package/src/resources/loyalty/index.ts +0 -2
  95. package/src/resources/loyalty/loyalty.ts +0 -4
  96. package/src/resources/loyalty/rules.ts +23 -7
  97. package/src/resources/loyalty/transactions/index.ts +1 -9
  98. package/src/resources/loyalty/transactions/rule-statuses.ts +0 -91
  99. package/src/resources/loyalty/transactions/transactions.ts +1 -160
  100. package/src/resources/users/users.ts +22 -0
  101. package/src/resources/websites/index.ts +2 -13
  102. package/src/resources/websites/website-collections.ts +1 -179
  103. package/src/resources/websites/websites.ts +3 -141
  104. package/src/version.ts +1 -1
  105. package/version.d.ts +1 -1
  106. package/version.js +1 -1
  107. 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.152'; // x-release-please-version
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.152";
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.152'; // x-release-please-version
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.152'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.153'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map