@snagsolutions/sdk 0.1.0-alpha.13 → 0.1.0-alpha.15
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 +98 -0
- package/README.md +22 -14
- package/core.d.ts.map +1 -1
- package/core.js +14 -7
- package/core.js.map +1 -1
- package/core.mjs +14 -7
- package/core.mjs.map +1 -1
- package/index.d.mts +11 -26
- package/index.d.ts +11 -26
- package/index.d.ts.map +1 -1
- package/index.js +8 -23
- package/index.js.map +1 -1
- package/index.mjs +8 -23
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/api/api.d.ts +365 -0
- package/resources/api/api.d.ts.map +1 -0
- package/resources/api/api.js +94 -0
- package/resources/api/api.js.map +1 -0
- package/resources/api/api.mjs +67 -0
- package/resources/api/api.mjs.map +1 -0
- package/resources/api/index.d.ts +9 -0
- package/resources/api/index.d.ts.map +1 -0
- package/resources/api/index.js +21 -0
- package/resources/api/index.js.map +1 -0
- package/resources/api/index.mjs +10 -0
- package/resources/api/index.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/accounts.d.ts +44 -6
- package/resources/api/loyalty/accounts.d.ts.map +1 -0
- package/resources/api/loyalty/accounts.js +24 -0
- package/resources/api/loyalty/accounts.js.map +1 -0
- package/resources/api/loyalty/accounts.mjs +20 -0
- package/resources/api/loyalty/accounts.mjs.map +1 -0
- package/resources/api/loyalty/badges.d.ts +870 -0
- package/resources/api/loyalty/badges.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/badges.js +2 -2
- package/resources/api/loyalty/badges.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/badges.mjs +2 -2
- package/resources/api/loyalty/badges.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/currencies.d.ts +3 -9
- package/resources/api/loyalty/currencies.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/currencies.js +1 -1
- package/resources/api/loyalty/currencies.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/currencies.mjs +1 -1
- package/resources/api/loyalty/currencies.mjs.map +1 -0
- package/resources/api/loyalty/index.d.ts +10 -0
- package/resources/api/loyalty/index.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/index.js +5 -3
- package/resources/api/loyalty/index.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/index.mjs +4 -3
- package/resources/api/loyalty/index.mjs.map +1 -0
- package/resources/api/loyalty/loyalty.d.ts +807 -0
- package/resources/api/loyalty/loyalty.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/loyalty.js +36 -13
- package/resources/api/loyalty/loyalty.js.map +1 -0
- package/resources/api/loyalty/loyalty.mjs +59 -0
- package/resources/api/loyalty/loyalty.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/multipliers.d.ts +36 -4
- package/resources/api/loyalty/multipliers.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/multipliers.js +8 -2
- package/resources/api/loyalty/multipliers.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/multipliers.mjs +8 -2
- package/resources/api/loyalty/multipliers.mjs.map +1 -0
- package/resources/api/loyalty/questions-responses.d.ts +97 -0
- package/resources/api/loyalty/questions-responses.d.ts.map +1 -0
- package/resources/api/loyalty/questions-responses.js +22 -0
- package/resources/api/loyalty/questions-responses.js.map +1 -0
- package/resources/api/loyalty/questions-responses.mjs +18 -0
- package/resources/api/loyalty/questions-responses.mjs.map +1 -0
- package/resources/api/loyalty/questions.d.ts +150 -0
- package/resources/api/loyalty/questions.d.ts.map +1 -0
- package/resources/api/loyalty/questions.js +27 -0
- package/resources/api/loyalty/questions.js.map +1 -0
- package/resources/api/loyalty/questions.mjs +23 -0
- package/resources/api/loyalty/questions.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/rule-edits.d.ts +9 -9
- package/resources/api/loyalty/rule-edits.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/rule-edits.js +3 -3
- package/resources/api/loyalty/rule-edits.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/rule-edits.mjs +3 -3
- package/resources/api/loyalty/rule-edits.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/rules.d.ts +167 -90
- package/resources/api/loyalty/rules.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/rules.js +3 -3
- package/resources/api/loyalty/rules.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/rules.mjs +3 -3
- package/resources/api/loyalty/rules.mjs.map +1 -0
- package/resources/api/loyalty.d.ts +2 -0
- package/resources/api/loyalty.d.ts.map +1 -0
- package/resources/api/loyalty.js +19 -0
- package/resources/api/loyalty.js.map +1 -0
- package/resources/api/loyalty.mjs +3 -0
- package/resources/api/loyalty.mjs.map +1 -0
- package/resources/api/minting.d.ts +95 -0
- package/resources/api/minting.d.ts.map +1 -0
- package/resources/api/minting.js +15 -0
- package/resources/api/minting.js.map +1 -0
- package/resources/api/minting.mjs +11 -0
- package/resources/api/minting.mjs.map +1 -0
- package/resources/api/referral/index.d.ts +3 -0
- package/resources/api/referral/index.d.ts.map +1 -0
- package/resources/api/referral/index.js +9 -0
- package/resources/api/referral/index.js.map +1 -0
- package/resources/api/referral/index.mjs +4 -0
- package/resources/api/referral/index.mjs.map +1 -0
- package/resources/api/referral/referral.d.ts +31 -0
- package/resources/api/referral/referral.d.ts.map +1 -0
- package/resources/{drip/drip.js → api/referral/referral.js} +16 -13
- package/resources/api/referral/referral.js.map +1 -0
- package/resources/api/referral/referral.mjs +19 -0
- package/resources/api/referral/referral.mjs.map +1 -0
- package/resources/api/referral/users.d.ts +57 -0
- package/resources/api/referral/users.d.ts.map +1 -0
- package/resources/api/referral/users.js +21 -0
- package/resources/api/referral/users.js.map +1 -0
- package/resources/api/referral/users.mjs +17 -0
- package/resources/api/referral/users.mjs.map +1 -0
- package/resources/api/referral.d.ts +2 -0
- package/resources/api/referral.d.ts.map +1 -0
- package/resources/api/referral.js +19 -0
- package/resources/api/referral.js.map +1 -0
- package/resources/api/referral.mjs +3 -0
- package/resources/api/referral.mjs.map +1 -0
- package/resources/api/users/index.d.ts +3 -0
- package/resources/api/users/index.d.ts.map +1 -0
- package/resources/{users → api/users}/index.js +1 -3
- package/resources/api/users/index.js.map +1 -0
- package/resources/api/users/index.mjs +4 -0
- package/resources/api/users/index.mjs.map +1 -0
- package/resources/api/users/metadatas.d.ts +137 -0
- package/resources/api/users/metadatas.d.ts.map +1 -0
- package/resources/{users → api/users}/metadatas.js +8 -2
- package/resources/api/users/metadatas.js.map +1 -0
- package/resources/api/users/metadatas.mjs +18 -0
- package/resources/api/users/metadatas.mjs.map +1 -0
- package/resources/api/users/users.d.ts +133 -0
- package/resources/api/users/users.d.ts.map +1 -0
- package/resources/{users → api/users}/users.js +19 -5
- package/resources/api/users/users.js.map +1 -0
- package/resources/api/users/users.mjs +30 -0
- package/resources/api/users/users.mjs.map +1 -0
- package/resources/api/users.d.ts +2 -0
- package/resources/api/users.d.ts.map +1 -0
- package/resources/api/users.js +19 -0
- package/resources/api/users.js.map +1 -0
- package/resources/api/users.mjs +3 -0
- package/resources/api/users.mjs.map +1 -0
- package/resources/api/website-collections.d.ts +73 -0
- package/resources/api/website-collections.d.ts.map +1 -0
- package/resources/api/website-collections.js +25 -0
- package/resources/api/website-collections.js.map +1 -0
- package/resources/api/website-collections.mjs +21 -0
- package/resources/api/website-collections.mjs.map +1 -0
- package/resources/api/website-user-roles.d.ts +73 -0
- package/resources/api/website-user-roles.d.ts.map +1 -0
- package/resources/api/website-user-roles.js +22 -0
- package/resources/api/website-user-roles.js.map +1 -0
- package/resources/api/website-user-roles.mjs +18 -0
- package/resources/api/website-user-roles.mjs.map +1 -0
- package/resources/{websites.d.ts → api/websites.d.ts} +2 -2
- package/resources/api/websites.d.ts.map +1 -0
- package/resources/{websites.js → api/websites.js} +2 -2
- package/resources/api/websites.js.map +1 -0
- package/resources/{websites.mjs → api/websites.mjs} +2 -2
- package/resources/api/websites.mjs.map +1 -0
- package/resources/api.d.ts +2 -0
- package/resources/api.d.ts.map +1 -0
- package/resources/api.js +19 -0
- package/resources/api.js.map +1 -0
- package/resources/api.mjs +3 -0
- package/resources/api.mjs.map +1 -0
- package/resources/index.d.ts +1 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -13
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -6
- package/resources/index.mjs.map +1 -1
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +18 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/core.ts +16 -8
- package/src/index.ts +28 -57
- package/src/resources/api/api.ts +629 -0
- package/src/resources/api/index.ts +51 -0
- package/src/resources/{loyalty → api/loyalty}/accounts.ts +65 -8
- package/src/resources/api/loyalty/badges.ts +1142 -0
- package/src/resources/{loyalty → api/loyalty}/currencies.ts +3 -9
- package/src/resources/{loyalty → api/loyalty}/index.ts +38 -11
- package/src/resources/api/loyalty/loyalty.ts +1297 -0
- package/src/resources/{loyalty → api/loyalty}/multipliers.ts +61 -4
- package/src/resources/api/loyalty/questions-responses.ts +146 -0
- package/src/resources/api/loyalty/questions.ts +208 -0
- package/src/resources/{loyalty → api/loyalty}/rule-edits.ts +11 -14
- package/src/resources/{loyalty → api/loyalty}/rules.ts +339 -180
- package/src/resources/api/loyalty.ts +3 -0
- package/src/resources/api/minting.ts +157 -0
- package/src/resources/api/referral/index.ts +10 -0
- package/src/resources/api/referral/referral.ts +70 -0
- package/src/resources/api/referral/users.ts +93 -0
- package/src/resources/api/referral.ts +3 -0
- package/src/resources/api/users/index.ts +18 -0
- package/src/resources/api/users/metadatas.ts +206 -0
- package/src/resources/api/users/users.ts +203 -0
- package/src/resources/api/users.ts +3 -0
- package/src/resources/api/website-collections.ts +148 -0
- package/src/resources/api/website-user-roles.ts +107 -0
- package/src/resources/{websites.ts → api/websites.ts} +3 -3
- package/src/resources/api.ts +3 -0
- package/src/resources/index.ts +8 -11
- package/src/resources.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/assets.d.ts +0 -50
- package/resources/assets.d.ts.map +0 -1
- package/resources/assets.js +0 -17
- package/resources/assets.js.map +0 -1
- package/resources/assets.mjs +0 -13
- package/resources/assets.mjs.map +0 -1
- package/resources/auction-bids.d.ts +0 -81
- package/resources/auction-bids.d.ts.map +0 -1
- package/resources/auction-bids.js +0 -30
- package/resources/auction-bids.js.map +0 -1
- package/resources/auction-bids.mjs +0 -26
- package/resources/auction-bids.mjs.map +0 -1
- package/resources/drip/drip.d.ts +0 -14
- package/resources/drip/drip.d.ts.map +0 -1
- package/resources/drip/drip.js.map +0 -1
- package/resources/drip/drip.mjs +0 -16
- package/resources/drip/drip.mjs.map +0 -1
- package/resources/drip/index.d.ts +0 -4
- package/resources/drip/index.d.ts.map +0 -1
- package/resources/drip/index.js +0 -11
- package/resources/drip/index.js.map +0 -1
- package/resources/drip/index.mjs +0 -5
- package/resources/drip/index.mjs.map +0 -1
- package/resources/drip/quests.d.ts +0 -168
- package/resources/drip/quests.d.ts.map +0 -1
- package/resources/drip/quests.js +0 -17
- package/resources/drip/quests.js.map +0 -1
- package/resources/drip/quests.mjs +0 -13
- package/resources/drip/quests.mjs.map +0 -1
- package/resources/drip/status.d.ts +0 -26
- package/resources/drip/status.d.ts.map +0 -1
- package/resources/drip/status.js +0 -16
- package/resources/drip/status.js.map +0 -1
- package/resources/drip/status.mjs +0 -12
- package/resources/drip/status.mjs.map +0 -1
- package/resources/loyalty/accounts.d.ts.map +0 -1
- package/resources/loyalty/accounts.js +0 -16
- package/resources/loyalty/accounts.js.map +0 -1
- package/resources/loyalty/accounts.mjs +0 -12
- package/resources/loyalty/accounts.mjs.map +0 -1
- package/resources/loyalty/badges.d.ts +0 -299
- package/resources/loyalty/badges.d.ts.map +0 -1
- package/resources/loyalty/badges.js.map +0 -1
- package/resources/loyalty/badges.mjs.map +0 -1
- package/resources/loyalty/currencies.d.ts.map +0 -1
- package/resources/loyalty/currencies.js.map +0 -1
- package/resources/loyalty/currencies.mjs.map +0 -1
- package/resources/loyalty/index.d.ts +0 -9
- package/resources/loyalty/index.d.ts.map +0 -1
- package/resources/loyalty/index.js.map +0 -1
- package/resources/loyalty/index.mjs.map +0 -1
- package/resources/loyalty/loyalty.d.ts +0 -34
- package/resources/loyalty/loyalty.d.ts.map +0 -1
- package/resources/loyalty/loyalty.js.map +0 -1
- package/resources/loyalty/loyalty.mjs +0 -36
- package/resources/loyalty/loyalty.mjs.map +0 -1
- package/resources/loyalty/multipliers.d.ts.map +0 -1
- package/resources/loyalty/multipliers.js.map +0 -1
- package/resources/loyalty/multipliers.mjs.map +0 -1
- package/resources/loyalty/rule-edits.d.ts.map +0 -1
- package/resources/loyalty/rule-edits.js.map +0 -1
- package/resources/loyalty/rule-edits.mjs.map +0 -1
- package/resources/loyalty/rules.d.ts.map +0 -1
- package/resources/loyalty/rules.js.map +0 -1
- package/resources/loyalty/rules.mjs.map +0 -1
- package/resources/loyalty/transaction-entries.d.ts +0 -175
- package/resources/loyalty/transaction-entries.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries.js +0 -16
- package/resources/loyalty/transaction-entries.js.map +0 -1
- package/resources/loyalty/transaction-entries.mjs +0 -12
- package/resources/loyalty/transaction-entries.mjs.map +0 -1
- package/resources/users/index.d.ts +0 -4
- package/resources/users/index.d.ts.map +0 -1
- package/resources/users/index.js.map +0 -1
- package/resources/users/index.mjs +0 -5
- package/resources/users/index.mjs.map +0 -1
- package/resources/users/metadatas.d.ts +0 -64
- package/resources/users/metadatas.d.ts.map +0 -1
- package/resources/users/metadatas.js.map +0 -1
- package/resources/users/metadatas.mjs +0 -12
- package/resources/users/metadatas.mjs.map +0 -1
- package/resources/users/users.d.ts +0 -14
- package/resources/users/users.d.ts.map +0 -1
- package/resources/users/users.js.map +0 -1
- package/resources/users/users.mjs +0 -16
- package/resources/users/users.mjs.map +0 -1
- package/resources/users/wallets.d.ts +0 -193
- package/resources/users/wallets.d.ts.map +0 -1
- package/resources/users/wallets.js +0 -28
- package/resources/users/wallets.js.map +0 -1
- package/resources/users/wallets.mjs +0 -24
- package/resources/users/wallets.mjs.map +0 -1
- package/resources/websites.d.ts.map +0 -1
- package/resources/websites.js.map +0 -1
- package/resources/websites.mjs.map +0 -1
- package/src/resources/assets.ts +0 -71
- package/src/resources/auction-bids.ts +0 -123
- package/src/resources/drip/drip.ts +0 -25
- package/src/resources/drip/index.ts +0 -5
- package/src/resources/drip/quests.ts +0 -210
- package/src/resources/drip/status.ts +0 -33
- package/src/resources/loyalty/badges.ts +0 -435
- package/src/resources/loyalty/loyalty.ts +0 -159
- package/src/resources/loyalty/transaction-entries.ts +0 -229
- package/src/resources/users/index.ts +0 -12
- package/src/resources/users/metadatas.ts +0 -103
- package/src/resources/users/users.ts +0 -39
- package/src/resources/users/wallets.ts +0 -271
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"websites.js","sourceRoot":"","sources":["../src/resources/websites.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAG3C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;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;IAQD,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;AAvBD,4BAuBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"websites.mjs","sourceRoot":"","sources":["../src/resources/websites.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;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;IAQD,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"}
|
package/src/resources/assets.ts
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../resource';
|
|
4
|
-
import * as Core from '../core';
|
|
5
|
-
|
|
6
|
-
export class Assets extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* This endpoint allows you to upload a file to the resource. returns a presigned
|
|
9
|
-
* URL and the asset's public URL call put with the file as the body to upload the
|
|
10
|
-
* asst
|
|
11
|
-
*/
|
|
12
|
-
create(body: AssetCreateParams, options?: Core.RequestOptions): Core.APIPromise<AssetCreateResponse> {
|
|
13
|
-
return this._client.post('/api/assets', { body, ...options });
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Response returned upon successful generation of the signed URL for uploading the
|
|
19
|
-
* file.
|
|
20
|
-
*/
|
|
21
|
-
export interface AssetCreateResponse {
|
|
22
|
-
/**
|
|
23
|
-
* The pre-signed URL to be used for uploading the file.
|
|
24
|
-
*/
|
|
25
|
-
signedUrl: string;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The URL of the uploaded file.
|
|
29
|
-
*/
|
|
30
|
-
url: string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface AssetCreateParams {
|
|
34
|
-
/**
|
|
35
|
-
* The name of the file, must match the regex pattern (converted to lowercase)
|
|
36
|
-
*/
|
|
37
|
-
fileName: string;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* The file path, must be a valid enum value.
|
|
41
|
-
*/
|
|
42
|
-
filePath?:
|
|
43
|
-
| 'announcements'
|
|
44
|
-
| 'images'
|
|
45
|
-
| 'videos'
|
|
46
|
-
| 'banners'
|
|
47
|
-
| 'fonts'
|
|
48
|
-
| 'posts'
|
|
49
|
-
| 'profiles'
|
|
50
|
-
| 'minting'
|
|
51
|
-
| 'loyalty';
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* UUID of the organization (optional, converted to lowercase)
|
|
55
|
-
*/
|
|
56
|
-
organizationId?: string;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* UUID of the user (optional, converted to lowercase)
|
|
60
|
-
*/
|
|
61
|
-
userId?: string;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* UUID of the website (optional, converted to lowercase)
|
|
65
|
-
*/
|
|
66
|
-
websiteId?: string;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export declare namespace Assets {
|
|
70
|
-
export { type AssetCreateResponse as AssetCreateResponse, type AssetCreateParams as AssetCreateParams };
|
|
71
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../resource';
|
|
4
|
-
import { isRequestOptions } from '../core';
|
|
5
|
-
import * as Core from '../core';
|
|
6
|
-
|
|
7
|
-
export class AuctionBids extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Creates a new bid for an auction.
|
|
10
|
-
*/
|
|
11
|
-
create(body: AuctionBidCreateParams, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
12
|
-
return this._client.post('/api/auction_bids', {
|
|
13
|
-
body,
|
|
14
|
-
...options,
|
|
15
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Returns a list of auction bids with optional filtering and pagination.
|
|
21
|
-
*/
|
|
22
|
-
list(query?: AuctionBidListParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
23
|
-
list(options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
24
|
-
list(
|
|
25
|
-
query: AuctionBidListParams | Core.RequestOptions = {},
|
|
26
|
-
options?: Core.RequestOptions,
|
|
27
|
-
): Core.APIPromise<void> {
|
|
28
|
-
if (isRequestOptions(query)) {
|
|
29
|
-
return this.list({}, query);
|
|
30
|
-
}
|
|
31
|
-
return this._client.get('/api/auction_bids', {
|
|
32
|
-
query,
|
|
33
|
-
...options,
|
|
34
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface AuctionBidCreateParams {
|
|
40
|
-
/**
|
|
41
|
-
* Bid amount
|
|
42
|
-
*/
|
|
43
|
-
amount: unknown;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* ID of the auction
|
|
47
|
-
*/
|
|
48
|
-
auctionId: string;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Name of the blockchain chain
|
|
52
|
-
*/
|
|
53
|
-
chainName: string;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* ID of the organization
|
|
57
|
-
*/
|
|
58
|
-
organizationId: string;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Signature of the bid
|
|
62
|
-
*/
|
|
63
|
-
signature: string;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* ID of the website
|
|
67
|
-
*/
|
|
68
|
-
websiteId: string;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export interface AuctionBidListParams {
|
|
72
|
-
/**
|
|
73
|
-
* The bid ID
|
|
74
|
-
*/
|
|
75
|
-
id?: string;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* ID of the auction
|
|
79
|
-
*/
|
|
80
|
-
auctionId?: string;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Maximum number of bids to return
|
|
84
|
-
*/
|
|
85
|
-
limit?: number | null;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* ID of the organization
|
|
89
|
-
*/
|
|
90
|
-
organizationId?: string;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Pagination cursor to start after a specific bid ID
|
|
94
|
-
*/
|
|
95
|
-
startingAfter?: string;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Status of the bid
|
|
99
|
-
*/
|
|
100
|
-
status?: 'submitted' | 'accepted' | 'rejected' | 'fulfilled';
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* ID of the user who made the bid
|
|
104
|
-
*/
|
|
105
|
-
userId?: string;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Wallet address of the bidder
|
|
109
|
-
*/
|
|
110
|
-
walletAddress?: string;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* ID of the website
|
|
114
|
-
*/
|
|
115
|
-
websiteId?: string;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export declare namespace AuctionBids {
|
|
119
|
-
export {
|
|
120
|
-
type AuctionBidCreateParams as AuctionBidCreateParams,
|
|
121
|
-
type AuctionBidListParams as AuctionBidListParams,
|
|
122
|
-
};
|
|
123
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../resource';
|
|
4
|
-
import * as QuestsAPI from './quests';
|
|
5
|
-
import { QuestCompleteParams, QuestCompleteResponse, Quests } from './quests';
|
|
6
|
-
import * as StatusAPI from './status';
|
|
7
|
-
import { Status, StatusRetrieveResponse } from './status';
|
|
8
|
-
|
|
9
|
-
export class Drip extends APIResource {
|
|
10
|
-
quests: QuestsAPI.Quests = new QuestsAPI.Quests(this._client);
|
|
11
|
-
status: StatusAPI.Status = new StatusAPI.Status(this._client);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
Drip.Quests = Quests;
|
|
15
|
-
Drip.Status = Status;
|
|
16
|
-
|
|
17
|
-
export declare namespace Drip {
|
|
18
|
-
export {
|
|
19
|
-
Quests as Quests,
|
|
20
|
-
type QuestCompleteResponse as QuestCompleteResponse,
|
|
21
|
-
type QuestCompleteParams as QuestCompleteParams,
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { Status as Status, type StatusRetrieveResponse as StatusRetrieveResponse };
|
|
25
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
export { Drip } from './drip';
|
|
4
|
-
export { Quests, type QuestCompleteResponse, type QuestCompleteParams } from './quests';
|
|
5
|
-
export { Status, type StatusRetrieveResponse } from './status';
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../resource';
|
|
4
|
-
import * as Core from '../../core';
|
|
5
|
-
|
|
6
|
-
export class Quests extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Completes a specified quest for a user and updates their loyalty account balance
|
|
9
|
-
* if applicable. Run asynchronously; use the verification endpoint to check
|
|
10
|
-
* status.
|
|
11
|
-
*/
|
|
12
|
-
complete(
|
|
13
|
-
dripQuestId: string,
|
|
14
|
-
body: QuestCompleteParams,
|
|
15
|
-
options?: Core.RequestOptions,
|
|
16
|
-
): Core.APIPromise<QuestCompleteResponse> {
|
|
17
|
-
return this._client.post(`/api/drip/quests/${dripQuestId}/complete`, { body, ...options });
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type QuestCompleteResponse = QuestCompleteResponse.Quest | QuestCompleteResponse.UnionMember1;
|
|
22
|
-
|
|
23
|
-
export namespace QuestCompleteResponse {
|
|
24
|
-
export interface Quest {
|
|
25
|
-
/**
|
|
26
|
-
* Schema for a drip quest
|
|
27
|
-
*/
|
|
28
|
-
quest: Quest.Quest;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export namespace Quest {
|
|
32
|
-
/**
|
|
33
|
-
* Schema for a drip quest
|
|
34
|
-
*/
|
|
35
|
-
export interface Quest {
|
|
36
|
-
/**
|
|
37
|
-
* Unique identifier for the drip quest
|
|
38
|
-
*/
|
|
39
|
-
id: string;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Amount of reward for completing the quest
|
|
43
|
-
*/
|
|
44
|
-
amount: number;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Text to display on the action button
|
|
48
|
-
*/
|
|
49
|
-
buttonText: string;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Timestamp when the quest was claimed, if applicable
|
|
53
|
-
*/
|
|
54
|
-
claimedAt: string | null;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Indicates if the quest has been completed
|
|
58
|
-
*/
|
|
59
|
-
completed: boolean;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Description of the drip quest
|
|
63
|
-
*/
|
|
64
|
-
description: string;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Indicates if the quest has expired
|
|
68
|
-
*/
|
|
69
|
-
expired: boolean;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Expiration timestamp of the quest
|
|
73
|
-
*/
|
|
74
|
-
expiresAt: string;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Message associated with the quest
|
|
78
|
-
*/
|
|
79
|
-
message: string;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Array of requirements for the drip quest
|
|
83
|
-
*/
|
|
84
|
-
requirements: Array<Quest.Requirement>;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Title of the drip quest
|
|
88
|
-
*/
|
|
89
|
-
title: string;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export namespace Quest {
|
|
93
|
-
/**
|
|
94
|
-
* A requirement for completing the drip quest
|
|
95
|
-
*/
|
|
96
|
-
export interface Requirement {
|
|
97
|
-
/**
|
|
98
|
-
* Array of conditions for the requirement
|
|
99
|
-
*/
|
|
100
|
-
conditions: Array<Requirement.Condition>;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Link associated with the requirement
|
|
104
|
-
*/
|
|
105
|
-
link: string;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Type of the requirement
|
|
109
|
-
*/
|
|
110
|
-
type: string;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export namespace Requirement {
|
|
114
|
-
/**
|
|
115
|
-
* A condition for the requirement
|
|
116
|
-
*/
|
|
117
|
-
export interface Condition {
|
|
118
|
-
/**
|
|
119
|
-
* Condition that checks if a user has commented in X
|
|
120
|
-
*/
|
|
121
|
-
hasCommentedInX?: Condition.HasCommentedInX;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Condition that checks if a user has followed X
|
|
125
|
-
*/
|
|
126
|
-
hasFollowedX?: Condition.HasFollowedX;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Condition that checks if a user has liked in X
|
|
130
|
-
*/
|
|
131
|
-
hasLikedInX?: Condition.HasLikedInX;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Condition that checks if a user has reposted in X
|
|
135
|
-
*/
|
|
136
|
-
hasRepostedInX?: Condition.HasRepostedInX;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export namespace Condition {
|
|
140
|
-
/**
|
|
141
|
-
* Condition that checks if a user has commented in X
|
|
142
|
-
*/
|
|
143
|
-
export interface HasCommentedInX {
|
|
144
|
-
/**
|
|
145
|
-
* Value for the condition
|
|
146
|
-
*/
|
|
147
|
-
value: string;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Condition that checks if a user has followed X
|
|
152
|
-
*/
|
|
153
|
-
export interface HasFollowedX {
|
|
154
|
-
/**
|
|
155
|
-
* Value for the condition
|
|
156
|
-
*/
|
|
157
|
-
value: string;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Condition that checks if a user has liked in X
|
|
162
|
-
*/
|
|
163
|
-
export interface HasLikedInX {
|
|
164
|
-
/**
|
|
165
|
-
* Value for the condition
|
|
166
|
-
*/
|
|
167
|
-
value: string;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Condition that checks if a user has reposted in X
|
|
172
|
-
*/
|
|
173
|
-
export interface HasRepostedInX {
|
|
174
|
-
/**
|
|
175
|
-
* Value for the condition
|
|
176
|
-
*/
|
|
177
|
-
value: string;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export interface UnionMember1 {
|
|
185
|
-
data: UnionMember1.Data;
|
|
186
|
-
|
|
187
|
-
message: string;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
export namespace UnionMember1 {
|
|
191
|
-
export interface Data {
|
|
192
|
-
verificationId: string;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export interface QuestCompleteParams {
|
|
198
|
-
organizationId: string;
|
|
199
|
-
|
|
200
|
-
websiteId: string;
|
|
201
|
-
|
|
202
|
-
userId?: string;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export declare namespace Quests {
|
|
206
|
-
export {
|
|
207
|
-
type QuestCompleteResponse as QuestCompleteResponse,
|
|
208
|
-
type QuestCompleteParams as QuestCompleteParams,
|
|
209
|
-
};
|
|
210
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../resource';
|
|
4
|
-
import * as Core from '../../core';
|
|
5
|
-
|
|
6
|
-
export class Status extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Retrieves the current status of a drip quest verification using the verification
|
|
9
|
-
* ID.
|
|
10
|
-
*/
|
|
11
|
-
retrieve(verificationId: string, options?: Core.RequestOptions): Core.APIPromise<StatusRetrieveResponse> {
|
|
12
|
-
return this._client.get(`/api/drip/status/${verificationId}`, options);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Schema for verification status
|
|
18
|
-
*/
|
|
19
|
-
export interface StatusRetrieveResponse {
|
|
20
|
-
/**
|
|
21
|
-
* Current status of the verification
|
|
22
|
-
*/
|
|
23
|
-
status: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED';
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Unique identifier for the verification
|
|
27
|
-
*/
|
|
28
|
-
verificationId: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export declare namespace Status {
|
|
32
|
-
export { type StatusRetrieveResponse as StatusRetrieveResponse };
|
|
33
|
-
}
|