@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.
Files changed (97) hide show
  1. package/CHANGELOG.md +16 -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 +47 -1
  23. package/resources/auctions/website-user-attributes/values.d.ts.map +1 -1
  24. package/resources/auctions/website-user-attributes/values.js +14 -0
  25. package/resources/auctions/website-user-attributes/values.js.map +1 -1
  26. package/resources/auctions/website-user-attributes/values.mjs +14 -0
  27. package/resources/auctions/website-user-attributes/values.mjs.map +1 -1
  28. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +43 -3
  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 +7 -0
  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 +7 -0
  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/rule-groups.d.ts +1 -1
  48. package/resources/loyalty/rule-groups.d.ts.map +1 -1
  49. package/resources/loyalty/rules.d.ts +22 -6
  50. package/resources/loyalty/rules.d.ts.map +1 -1
  51. package/resources/loyalty/transactions/index.d.ts +1 -1
  52. package/resources/loyalty/transactions/index.d.ts.map +1 -1
  53. package/resources/loyalty/transactions/index.js.map +1 -1
  54. package/resources/loyalty/transactions/index.mjs.map +1 -1
  55. package/resources/loyalty/transactions/transactions.d.ts +120 -2
  56. package/resources/loyalty/transactions/transactions.d.ts.map +1 -1
  57. package/resources/loyalty/transactions/transactions.js +15 -0
  58. package/resources/loyalty/transactions/transactions.js.map +1 -1
  59. package/resources/loyalty/transactions/transactions.mjs +15 -0
  60. package/resources/loyalty/transactions/transactions.mjs.map +1 -1
  61. package/resources/websites/index.d.ts +2 -2
  62. package/resources/websites/index.d.ts.map +1 -1
  63. package/resources/websites/index.js.map +1 -1
  64. package/resources/websites/index.mjs +2 -2
  65. package/resources/websites/index.mjs.map +1 -1
  66. package/resources/websites/website-collections.d.ts +90 -0
  67. package/resources/websites/website-collections.d.ts.map +1 -1
  68. package/resources/websites/website-collections.js +37 -0
  69. package/resources/websites/website-collections.js.map +1 -1
  70. package/resources/websites/website-collections.mjs +37 -0
  71. package/resources/websites/website-collections.mjs.map +1 -1
  72. package/resources/websites/websites.d.ts +105 -3
  73. package/resources/websites/websites.d.ts.map +1 -1
  74. package/resources/websites/websites.js +13 -0
  75. package/resources/websites/websites.js.map +1 -1
  76. package/resources/websites/websites.mjs +14 -1
  77. package/resources/websites/websites.mjs.map +1 -1
  78. package/src/index.ts +9 -1
  79. package/src/resources/auctions/auctions.ts +4 -0
  80. package/src/resources/auctions/index.ts +2 -0
  81. package/src/resources/auctions/website-user-attributes/index.ts +9 -1
  82. package/src/resources/auctions/website-user-attributes/values.ts +69 -1
  83. package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +71 -1
  84. package/src/resources/index.ts +7 -1
  85. package/src/resources/loyalty/index.ts +2 -0
  86. package/src/resources/loyalty/loyalty.ts +4 -0
  87. package/src/resources/loyalty/rule-groups.ts +1 -0
  88. package/src/resources/loyalty/rules.ts +26 -4
  89. package/src/resources/loyalty/transactions/index.ts +2 -0
  90. package/src/resources/loyalty/transactions/transactions.ts +153 -0
  91. package/src/resources/websites/index.ts +13 -2
  92. package/src/resources/websites/website-collections.ts +183 -1
  93. package/src/resources/websites/websites.ts +141 -3
  94. package/src/version.ts +1 -1
  95. package/version.d.ts +1 -1
  96. package/version.js +1 -1
  97. 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 { WebsiteCollections } from './website-collections';
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 { type WebsiteListResponse as WebsiteListResponse, type WebsiteListParams as WebsiteListParams };
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 { WebsiteCollections as WebsiteCollections };
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.172'; // x-release-please-version
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.172";
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.172'; // x-release-please-version
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.172'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.174'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map