@snagsolutions/sdk 0.1.0-alpha.243 → 0.1.0-alpha.245
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/package.json +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 +2 -2
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/transactions/transactions.d.ts +1 -1
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions/transactions.js.map +1 -1
- package/resources/loyalty/transactions/transactions.mjs.map +1 -1
- package/resources/websites/index.d.ts +1 -1
- package/resources/websites/index.d.ts.map +1 -1
- package/resources/websites/index.js.map +1 -1
- package/resources/websites/index.mjs +1 -1
- 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 +2 -2
- package/resources/websites/websites.d.ts.map +1 -1
- package/resources/websites/websites.js.map +1 -1
- package/resources/websites/websites.mjs +1 -1
- package/resources/websites/websites.mjs.map +1 -1
- package/src/resources/loyalty/rule-groups.ts +3 -1
- package/src/resources/loyalty/rules.ts +6 -2
- package/src/resources/loyalty/transactions/transactions.ts +4 -0
- package/src/resources/websites/index.ts +1 -6
- package/src/resources/websites/website-collections.ts +1 -189
- package/src/resources/websites/websites.ts +2 -12
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../../src/resources/loyalty/transactions/transactions.ts"],"names":[],"mappings":";AAAA,sFAAs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,CAClB,IAA2C,EAC3C,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AA1GD,oCA0GC;
|
|
1
|
+
{"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../../src/resources/loyalty/transactions/transactions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAChD,2CAAiD;AAEjD,qDAAoC;AACpC,sCAAwG;AACxG,oEAAmD;AACnD,sDAMyB;AAEzB,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwG3D,CAAC;IAtGC;;;;;;;;;;;OAWG;IACH,iBAAiB,CACf,IAAwC,EACxC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAmBD,qBAAqB,CACnB,QAAsE,EAAE,EACxE,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,qBAAqB,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC9C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;OAUG;IACH,cAAc,CACZ,KAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,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nB,QAAsE,EAAE,EACxE,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,qBAAqB,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC9C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;OAUG;IACH,cAAc,CACZ,KAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,cAAc,CACZ,KAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,oBAAoB,CAClB,IAA2C,EAC3C,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"transactions.mjs","sourceRoot":"","sources":["../../../src/resources/loyalty/transactions/transactions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,KAAK,QAAQ;OACb,EAA0E,KAAK,EAAE;OACjF,KAAK,eAAe;OACpB,EAKL,YAAY,GACb;AAED,MAAM,OAAO,YAAa,SAAQ,WAAW;IAA7C;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,UAAK,GAAmB,IAAI,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|
1
|
-
export { WebsiteCollections
|
|
1
|
+
export { WebsiteCollections } from "./website-collections.js";
|
|
2
2
|
export { WebsiteUserRoles, type WebsiteUserRoleListResponse, type WebsiteUserRoleAssignResponse, type WebsiteUserRoleListParams, type WebsiteUserRoleAssignParams, } from "./website-user-roles.js";
|
|
3
3
|
export { Websites, type WebsiteCreateResponse, type WebsiteListResponse, type WebsiteCreateParams, type WebsiteListParams, } from "./websites.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/websites/index.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/websites/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,gBAAgB,EAChB,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,GACjC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/websites/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/websites/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gEAA2D;AAAlD,yHAAA,kBAAkB,OAAA;AAC3B,8DAM8B;AAL5B,sHAAA,gBAAgB,OAAA;AAMlB,0CAMoB;AALlB,oGAAA,QAAQ,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export { WebsiteCollections
|
|
2
|
+
export { WebsiteCollections } from "./website-collections.mjs";
|
|
3
3
|
export { WebsiteUserRoles, } from "./website-user-roles.mjs";
|
|
4
4
|
export { Websites, } from "./websites.mjs";
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/websites/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/websites/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,kBAAkB,EAAE;OACtB,EACL,gBAAgB,GAKjB;OACM,EACL,QAAQ,GAKT"}
|
|
@@ -1,94 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
|
-
import * as Core from "../../core.js";
|
|
3
2
|
export declare class WebsiteCollections extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Creates a new collection under a website
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* await client.websites.websiteCollections.create({
|
|
10
|
-
* collectionAddress:
|
|
11
|
-
* '0x2c02efDd09B3BA1AEaDd3dCAa7aC7A37C1CBDA8A',
|
|
12
|
-
* name: 'x',
|
|
13
|
-
* network: 'abstract',
|
|
14
|
-
* organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
15
|
-
* sortId: 99999,
|
|
16
|
-
* websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
17
|
-
* });
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
create(body: WebsiteCollectionCreateParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
21
|
-
/**
|
|
22
|
-
* Retrieves collections for a specific website.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* const websiteCollections =
|
|
27
|
-
* await client.websites.websiteCollections.list({
|
|
28
|
-
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
29
|
-
* });
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
list(query: WebsiteCollectionListParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteCollectionListResponse>;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Response schema for fetching website collections
|
|
36
|
-
*/
|
|
37
|
-
export interface WebsiteCollectionListResponse {
|
|
38
|
-
/**
|
|
39
|
-
* Array of websites
|
|
40
|
-
*/
|
|
41
|
-
data: Array<WebsiteCollectionListResponse.Data>;
|
|
42
|
-
/**
|
|
43
|
-
* Indicates if more pages are available
|
|
44
|
-
*/
|
|
45
|
-
hasNextPage: boolean;
|
|
46
|
-
}
|
|
47
|
-
export declare namespace WebsiteCollectionListResponse {
|
|
48
|
-
interface Data {
|
|
49
|
-
/**
|
|
50
|
-
* Website Collection ID
|
|
51
|
-
*/
|
|
52
|
-
id: string;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
export interface WebsiteCollectionCreateParams {
|
|
56
|
-
collectionAddress: string;
|
|
57
|
-
name: string;
|
|
58
|
-
network: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'nexusTestnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'skaleEuropa' | 'skaleCalypso' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'dogeosTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'zkverify' | 'polkadot' | 'kusama' | 'horizen' | 'horizenTestnet' | 'flow_cadence';
|
|
59
|
-
organizationId: string;
|
|
60
|
-
sortId: number;
|
|
61
|
-
websiteId: string;
|
|
62
|
-
discordUrl?: string;
|
|
63
|
-
homeUrl?: string;
|
|
64
|
-
imageUrl?: string | null;
|
|
65
|
-
instagramUsername?: string;
|
|
66
|
-
royaltyFee?: number | null;
|
|
67
|
-
royaltyFeeAddress?: string | null;
|
|
68
|
-
stakingAddress?: string;
|
|
69
|
-
telegramUrl?: string;
|
|
70
|
-
themeId?: string;
|
|
71
|
-
twitterUsername?: string;
|
|
72
|
-
}
|
|
73
|
-
export interface WebsiteCollectionListParams {
|
|
74
|
-
/**
|
|
75
|
-
* Filter by website ID
|
|
76
|
-
*/
|
|
77
|
-
websiteId: string;
|
|
78
|
-
/**
|
|
79
|
-
* Number of items to return
|
|
80
|
-
*/
|
|
81
|
-
limit?: number;
|
|
82
|
-
/**
|
|
83
|
-
* Filter by organization ID
|
|
84
|
-
*/
|
|
85
|
-
organizationId?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Pagination cursor, start after this ID
|
|
88
|
-
*/
|
|
89
|
-
startingAfter?: string;
|
|
90
|
-
}
|
|
91
|
-
export declare namespace WebsiteCollections {
|
|
92
|
-
export { type WebsiteCollectionListResponse as WebsiteCollectionListResponse, type WebsiteCollectionCreateParams as WebsiteCollectionCreateParams, type WebsiteCollectionListParams as WebsiteCollectionListParams, };
|
|
93
3
|
}
|
|
94
4
|
//# sourceMappingURL=website-collections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"website-collections.d.ts","sourceRoot":"","sources":["../../src/resources/websites/website-collections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"website-collections.d.ts","sourceRoot":"","sources":["../../src/resources/websites/website-collections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBAAa,kBAAmB,SAAQ,WAAW;CAAG"}
|
|
@@ -4,43 +4,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.WebsiteCollections = void 0;
|
|
5
5
|
const resource_1 = require("../../resource.js");
|
|
6
6
|
class WebsiteCollections extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Creates a new collection under a website
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* await client.websites.websiteCollections.create({
|
|
13
|
-
* collectionAddress:
|
|
14
|
-
* '0x2c02efDd09B3BA1AEaDd3dCAa7aC7A37C1CBDA8A',
|
|
15
|
-
* name: 'x',
|
|
16
|
-
* network: 'abstract',
|
|
17
|
-
* organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
18
|
-
* sortId: 99999,
|
|
19
|
-
* websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
create(body, options) {
|
|
24
|
-
return this._client.post('/api/website_collections', {
|
|
25
|
-
body,
|
|
26
|
-
...options,
|
|
27
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Retrieves collections for a specific website.
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```ts
|
|
35
|
-
* const websiteCollections =
|
|
36
|
-
* await client.websites.websiteCollections.list({
|
|
37
|
-
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
38
|
-
* });
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
list(query, options) {
|
|
42
|
-
return this._client.get('/api/website_collections', { query, ...options });
|
|
43
|
-
}
|
|
44
7
|
}
|
|
45
8
|
exports.WebsiteCollections = WebsiteCollections;
|
|
46
9
|
//# sourceMappingURL=website-collections.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"website-collections.js","sourceRoot":"","sources":["../../src/resources/websites/website-collections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;
|
|
1
|
+
{"version":3,"file":"website-collections.js","sourceRoot":"","sources":["../../src/resources/websites/website-collections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAE7C,MAAa,kBAAmB,SAAQ,sBAAW;CAAG;AAAtD,gDAAsD"}
|
|
@@ -1,42 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
3
|
export class WebsiteCollections extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Creates a new collection under a website
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* await client.websites.websiteCollections.create({
|
|
10
|
-
* collectionAddress:
|
|
11
|
-
* '0x2c02efDd09B3BA1AEaDd3dCAa7aC7A37C1CBDA8A',
|
|
12
|
-
* name: 'x',
|
|
13
|
-
* network: 'abstract',
|
|
14
|
-
* organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
15
|
-
* sortId: 99999,
|
|
16
|
-
* websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
17
|
-
* });
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
create(body, options) {
|
|
21
|
-
return this._client.post('/api/website_collections', {
|
|
22
|
-
body,
|
|
23
|
-
...options,
|
|
24
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Retrieves collections for a specific website.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const websiteCollections =
|
|
33
|
-
* await client.websites.websiteCollections.list({
|
|
34
|
-
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
35
|
-
* });
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
list(query, options) {
|
|
39
|
-
return this._client.get('/api/website_collections', { query, ...options });
|
|
40
|
-
}
|
|
41
4
|
}
|
|
42
5
|
//# sourceMappingURL=website-collections.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"website-collections.mjs","sourceRoot":"","sources":["../../src/resources/websites/website-collections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"website-collections.mjs","sourceRoot":"","sources":["../../src/resources/websites/website-collections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAEtB,MAAM,OAAO,kBAAmB,SAAQ,WAAW;CAAG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
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 {
|
|
@@ -307,7 +307,7 @@ export interface WebsiteListParams {
|
|
|
307
307
|
}
|
|
308
308
|
export declare namespace Websites {
|
|
309
309
|
export { type WebsiteCreateResponse as WebsiteCreateResponse, type WebsiteListResponse as WebsiteListResponse, type WebsiteCreateParams as WebsiteCreateParams, type WebsiteListParams as WebsiteListParams, };
|
|
310
|
-
export { WebsiteCollections as WebsiteCollections
|
|
310
|
+
export { WebsiteCollections as WebsiteCollections };
|
|
311
311
|
export { WebsiteUserRoles as WebsiteUserRoles, type WebsiteUserRoleListResponse as WebsiteUserRoleListResponse, type WebsiteUserRoleAssignResponse as WebsiteUserRoleAssignResponse, type WebsiteUserRoleListParams as WebsiteUserRoleListParams, type WebsiteUserRoleAssignParams as WebsiteUserRoleAssignParams, };
|
|
312
312
|
}
|
|
313
313
|
//# 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;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE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,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,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"}
|
|
@@ -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;IAoCJ,CAAC;IAlCC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAaD,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;AA1CD,4BA0CC;AA4UD,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 {
|
|
@@ -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;IAoCJ,CAAC;IAlCC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAaD,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;AA4UD,QAAQ,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;AACjD,QAAQ,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
|
|
@@ -269,7 +269,9 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
269
269
|
| 'instagram_post'
|
|
270
270
|
| 'instagram_follow'
|
|
271
271
|
| 'connected_phone'
|
|
272
|
-
| 'dapps_by_gas_spent'
|
|
272
|
+
| 'dapps_by_gas_spent'
|
|
273
|
+
| 'dapps_by_active_users'
|
|
274
|
+
| 'dapps_by_new_users';
|
|
273
275
|
}
|
|
274
276
|
|
|
275
277
|
export namespace LoyaltyRule {
|
|
@@ -296,7 +296,9 @@ export interface RuleCreateResponse {
|
|
|
296
296
|
| 'instagram_post'
|
|
297
297
|
| 'instagram_follow'
|
|
298
298
|
| 'connected_phone'
|
|
299
|
-
| 'dapps_by_gas_spent'
|
|
299
|
+
| 'dapps_by_gas_spent'
|
|
300
|
+
| 'dapps_by_active_users'
|
|
301
|
+
| 'dapps_by_new_users';
|
|
300
302
|
|
|
301
303
|
/**
|
|
302
304
|
* Unique identifier for the associated website
|
|
@@ -4330,7 +4332,9 @@ export interface RuleCreateParams {
|
|
|
4330
4332
|
| 'instagram_post'
|
|
4331
4333
|
| 'instagram_follow'
|
|
4332
4334
|
| 'connected_phone'
|
|
4333
|
-
| 'dapps_by_gas_spent'
|
|
4335
|
+
| 'dapps_by_gas_spent'
|
|
4336
|
+
| 'dapps_by_active_users'
|
|
4337
|
+
| 'dapps_by_new_users';
|
|
4334
4338
|
|
|
4335
4339
|
/**
|
|
4336
4340
|
* Unique identifier for the associated website
|
|
@@ -655,6 +655,8 @@ export interface TransactionGetTransactionEntriesParams {
|
|
|
655
655
|
| 'instagram_follow'
|
|
656
656
|
| 'connected_phone'
|
|
657
657
|
| 'dapps_by_gas_spent'
|
|
658
|
+
| 'dapps_by_active_users'
|
|
659
|
+
| 'dapps_by_new_users'
|
|
658
660
|
| Array<
|
|
659
661
|
| 'Bonus'
|
|
660
662
|
| 'BoughtOn'
|
|
@@ -738,6 +740,8 @@ export interface TransactionGetTransactionEntriesParams {
|
|
|
738
740
|
| 'instagram_follow'
|
|
739
741
|
| 'connected_phone'
|
|
740
742
|
| 'dapps_by_gas_spent'
|
|
743
|
+
| 'dapps_by_active_users'
|
|
744
|
+
| 'dapps_by_new_users'
|
|
741
745
|
>;
|
|
742
746
|
|
|
743
747
|
/**
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
4
|
-
WebsiteCollections,
|
|
5
|
-
type WebsiteCollectionListResponse,
|
|
6
|
-
type WebsiteCollectionCreateParams,
|
|
7
|
-
type WebsiteCollectionListParams,
|
|
8
|
-
} from './website-collections';
|
|
3
|
+
export { WebsiteCollections } from './website-collections';
|
|
9
4
|
export {
|
|
10
5
|
WebsiteUserRoles,
|
|
11
6
|
type WebsiteUserRoleListResponse,
|
|
@@ -1,193 +1,5 @@
|
|
|
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 * as Core from '../../core';
|
|
5
4
|
|
|
6
|
-
export class WebsiteCollections extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Creates a new collection under a website
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* await client.websites.websiteCollections.create({
|
|
13
|
-
* collectionAddress:
|
|
14
|
-
* '0x2c02efDd09B3BA1AEaDd3dCAa7aC7A37C1CBDA8A',
|
|
15
|
-
* name: 'x',
|
|
16
|
-
* network: 'abstract',
|
|
17
|
-
* organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
18
|
-
* sortId: 99999,
|
|
19
|
-
* websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
create(body: WebsiteCollectionCreateParams, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
24
|
-
return this._client.post('/api/website_collections', {
|
|
25
|
-
body,
|
|
26
|
-
...options,
|
|
27
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Retrieves collections for a specific website.
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```ts
|
|
36
|
-
* const websiteCollections =
|
|
37
|
-
* await client.websites.websiteCollections.list({
|
|
38
|
-
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
39
|
-
* });
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
list(
|
|
43
|
-
query: WebsiteCollectionListParams,
|
|
44
|
-
options?: Core.RequestOptions,
|
|
45
|
-
): Core.APIPromise<WebsiteCollectionListResponse> {
|
|
46
|
-
return this._client.get('/api/website_collections', { query, ...options });
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Response schema for fetching website collections
|
|
52
|
-
*/
|
|
53
|
-
export interface WebsiteCollectionListResponse {
|
|
54
|
-
/**
|
|
55
|
-
* Array of websites
|
|
56
|
-
*/
|
|
57
|
-
data: Array<WebsiteCollectionListResponse.Data>;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Indicates if more pages are available
|
|
61
|
-
*/
|
|
62
|
-
hasNextPage: boolean;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export namespace WebsiteCollectionListResponse {
|
|
66
|
-
export interface Data {
|
|
67
|
-
/**
|
|
68
|
-
* Website Collection ID
|
|
69
|
-
*/
|
|
70
|
-
id: string;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export interface WebsiteCollectionCreateParams {
|
|
75
|
-
collectionAddress: string;
|
|
76
|
-
|
|
77
|
-
name: string;
|
|
78
|
-
|
|
79
|
-
network:
|
|
80
|
-
| 'abstract'
|
|
81
|
-
| 'abstractTestnet'
|
|
82
|
-
| 'apechain'
|
|
83
|
-
| 'arbitrum'
|
|
84
|
-
| 'avalanche'
|
|
85
|
-
| 'avalancheFuji'
|
|
86
|
-
| 'base'
|
|
87
|
-
| 'baseSepolia'
|
|
88
|
-
| 'berachain'
|
|
89
|
-
| 'berachainArtio'
|
|
90
|
-
| 'berachainBepolia'
|
|
91
|
-
| 'binance'
|
|
92
|
-
| 'bscTestnet'
|
|
93
|
-
| 'campTestnet'
|
|
94
|
-
| 'fantom'
|
|
95
|
-
| 'fantomTestnet'
|
|
96
|
-
| 'flowMainnet'
|
|
97
|
-
| 'mainnet'
|
|
98
|
-
| 'nexusTestnet'
|
|
99
|
-
| 'optimism'
|
|
100
|
-
| 'polygon'
|
|
101
|
-
| 'polygon_mumbai'
|
|
102
|
-
| 'skaleNebula'
|
|
103
|
-
| 'skaleEuropa'
|
|
104
|
-
| 'skaleCalypso'
|
|
105
|
-
| 'solana'
|
|
106
|
-
| 'sophon'
|
|
107
|
-
| 'sophonTestnet'
|
|
108
|
-
| 'sui'
|
|
109
|
-
| 'superseed'
|
|
110
|
-
| 'superseedSepolia'
|
|
111
|
-
| 'vanar'
|
|
112
|
-
| 'xai'
|
|
113
|
-
| 'zksync'
|
|
114
|
-
| 'coti'
|
|
115
|
-
| 'cotiTestnet'
|
|
116
|
-
| 'dogeosTestnet'
|
|
117
|
-
| 'morph'
|
|
118
|
-
| 'morphTestnet'
|
|
119
|
-
| 'morphHolesky'
|
|
120
|
-
| 'ultra'
|
|
121
|
-
| 'ultraTestnet'
|
|
122
|
-
| 'nitrograph'
|
|
123
|
-
| 'sepolia'
|
|
124
|
-
| 'optimism_sepolia'
|
|
125
|
-
| 'arbitrumSepolia'
|
|
126
|
-
| 'goerli'
|
|
127
|
-
| 'optimism_goerli'
|
|
128
|
-
| 'arbitrumGoerli'
|
|
129
|
-
| 'basecamp'
|
|
130
|
-
| 'somnia'
|
|
131
|
-
| 'zkverify'
|
|
132
|
-
| 'polkadot'
|
|
133
|
-
| 'kusama'
|
|
134
|
-
| 'horizen'
|
|
135
|
-
| 'horizenTestnet'
|
|
136
|
-
| 'flow_cadence';
|
|
137
|
-
|
|
138
|
-
organizationId: string;
|
|
139
|
-
|
|
140
|
-
sortId: number;
|
|
141
|
-
|
|
142
|
-
websiteId: string;
|
|
143
|
-
|
|
144
|
-
discordUrl?: string;
|
|
145
|
-
|
|
146
|
-
homeUrl?: string;
|
|
147
|
-
|
|
148
|
-
imageUrl?: string | null;
|
|
149
|
-
|
|
150
|
-
instagramUsername?: string;
|
|
151
|
-
|
|
152
|
-
royaltyFee?: number | null;
|
|
153
|
-
|
|
154
|
-
royaltyFeeAddress?: string | null;
|
|
155
|
-
|
|
156
|
-
stakingAddress?: string;
|
|
157
|
-
|
|
158
|
-
telegramUrl?: string;
|
|
159
|
-
|
|
160
|
-
themeId?: string;
|
|
161
|
-
|
|
162
|
-
twitterUsername?: string;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export interface WebsiteCollectionListParams {
|
|
166
|
-
/**
|
|
167
|
-
* Filter by website ID
|
|
168
|
-
*/
|
|
169
|
-
websiteId: string;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Number of items to return
|
|
173
|
-
*/
|
|
174
|
-
limit?: number;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Filter by organization ID
|
|
178
|
-
*/
|
|
179
|
-
organizationId?: string;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Pagination cursor, start after this ID
|
|
183
|
-
*/
|
|
184
|
-
startingAfter?: string;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export declare namespace WebsiteCollections {
|
|
188
|
-
export {
|
|
189
|
-
type WebsiteCollectionListResponse as WebsiteCollectionListResponse,
|
|
190
|
-
type WebsiteCollectionCreateParams as WebsiteCollectionCreateParams,
|
|
191
|
-
type WebsiteCollectionListParams as WebsiteCollectionListParams,
|
|
192
|
-
};
|
|
193
|
-
}
|
|
5
|
+
export class WebsiteCollections extends APIResource {}
|
|
@@ -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,
|
|
@@ -404,12 +399,7 @@ export declare namespace Websites {
|
|
|
404
399
|
type WebsiteListParams as WebsiteListParams,
|
|
405
400
|
};
|
|
406
401
|
|
|
407
|
-
export {
|
|
408
|
-
WebsiteCollections as WebsiteCollections,
|
|
409
|
-
type WebsiteCollectionListResponse as WebsiteCollectionListResponse,
|
|
410
|
-
type WebsiteCollectionCreateParams as WebsiteCollectionCreateParams,
|
|
411
|
-
type WebsiteCollectionListParams as WebsiteCollectionListParams,
|
|
412
|
-
};
|
|
402
|
+
export { WebsiteCollections as WebsiteCollections };
|
|
413
403
|
|
|
414
404
|
export {
|
|
415
405
|
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.245'; // 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.245";
|
|
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.245'; // 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.245'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|