@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,81 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../resource.js";
|
|
2
|
-
import * as Core from "../core.js";
|
|
3
|
-
export declare class AuctionBids extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Creates a new bid for an auction.
|
|
6
|
-
*/
|
|
7
|
-
create(body: AuctionBidCreateParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
8
|
-
/**
|
|
9
|
-
* Returns a list of auction bids with optional filtering and pagination.
|
|
10
|
-
*/
|
|
11
|
-
list(query?: AuctionBidListParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
12
|
-
list(options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
13
|
-
}
|
|
14
|
-
export interface AuctionBidCreateParams {
|
|
15
|
-
/**
|
|
16
|
-
* Bid amount
|
|
17
|
-
*/
|
|
18
|
-
amount: unknown;
|
|
19
|
-
/**
|
|
20
|
-
* ID of the auction
|
|
21
|
-
*/
|
|
22
|
-
auctionId: string;
|
|
23
|
-
/**
|
|
24
|
-
* Name of the blockchain chain
|
|
25
|
-
*/
|
|
26
|
-
chainName: string;
|
|
27
|
-
/**
|
|
28
|
-
* ID of the organization
|
|
29
|
-
*/
|
|
30
|
-
organizationId: string;
|
|
31
|
-
/**
|
|
32
|
-
* Signature of the bid
|
|
33
|
-
*/
|
|
34
|
-
signature: string;
|
|
35
|
-
/**
|
|
36
|
-
* ID of the website
|
|
37
|
-
*/
|
|
38
|
-
websiteId: string;
|
|
39
|
-
}
|
|
40
|
-
export interface AuctionBidListParams {
|
|
41
|
-
/**
|
|
42
|
-
* The bid ID
|
|
43
|
-
*/
|
|
44
|
-
id?: string;
|
|
45
|
-
/**
|
|
46
|
-
* ID of the auction
|
|
47
|
-
*/
|
|
48
|
-
auctionId?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Maximum number of bids to return
|
|
51
|
-
*/
|
|
52
|
-
limit?: number | null;
|
|
53
|
-
/**
|
|
54
|
-
* ID of the organization
|
|
55
|
-
*/
|
|
56
|
-
organizationId?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Pagination cursor to start after a specific bid ID
|
|
59
|
-
*/
|
|
60
|
-
startingAfter?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Status of the bid
|
|
63
|
-
*/
|
|
64
|
-
status?: 'submitted' | 'accepted' | 'rejected' | 'fulfilled';
|
|
65
|
-
/**
|
|
66
|
-
* ID of the user who made the bid
|
|
67
|
-
*/
|
|
68
|
-
userId?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Wallet address of the bidder
|
|
71
|
-
*/
|
|
72
|
-
walletAddress?: string;
|
|
73
|
-
/**
|
|
74
|
-
* ID of the website
|
|
75
|
-
*/
|
|
76
|
-
websiteId?: string;
|
|
77
|
-
}
|
|
78
|
-
export declare namespace AuctionBids {
|
|
79
|
-
export { type AuctionBidCreateParams as AuctionBidCreateParams, type AuctionBidListParams as AuctionBidListParams, };
|
|
80
|
-
}
|
|
81
|
-
//# sourceMappingURL=auction-bids.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auction-bids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ACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.AuctionBids = void 0;
|
|
5
|
-
const resource_1 = require("../resource.js");
|
|
6
|
-
const core_1 = require("../core.js");
|
|
7
|
-
class AuctionBids extends resource_1.APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Creates a new bid for an auction.
|
|
10
|
-
*/
|
|
11
|
-
create(body, options) {
|
|
12
|
-
return this._client.post('/api/auction_bids', {
|
|
13
|
-
body,
|
|
14
|
-
...options,
|
|
15
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
list(query = {}, options) {
|
|
19
|
-
if ((0, core_1.isRequestOptions)(query)) {
|
|
20
|
-
return this.list({}, query);
|
|
21
|
-
}
|
|
22
|
-
return this._client.get('/api/auction_bids', {
|
|
23
|
-
query,
|
|
24
|
-
...options,
|
|
25
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.AuctionBids = AuctionBids;
|
|
30
|
-
//# sourceMappingURL=auction-bids.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auction-bids.js","sourceRoot":"","sources":["../src/resources/auction-bids.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAG3C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,MAAM,CAAC,IAA4B,EAAE,OAA6B;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE;YAC5C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAOD,IAAI,CACF,QAAoD,EAAE,EACtD,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,mBAAmB,EAAE;YAC3C,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AA9BD,kCA8BC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../resource.mjs";
|
|
3
|
-
import { isRequestOptions } from "../core.mjs";
|
|
4
|
-
export class AuctionBids extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Creates a new bid for an auction.
|
|
7
|
-
*/
|
|
8
|
-
create(body, options) {
|
|
9
|
-
return this._client.post('/api/auction_bids', {
|
|
10
|
-
body,
|
|
11
|
-
...options,
|
|
12
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
list(query = {}, options) {
|
|
16
|
-
if (isRequestOptions(query)) {
|
|
17
|
-
return this.list({}, query);
|
|
18
|
-
}
|
|
19
|
-
return this._client.get('/api/auction_bids', {
|
|
20
|
-
query,
|
|
21
|
-
...options,
|
|
22
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=auction-bids.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auction-bids.mjs","sourceRoot":"","sources":["../src/resources/auction-bids.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CAAC,IAA4B,EAAE,OAA6B;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE;YAC5C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAOD,IAAI,CACF,QAAoD,EAAE,EACtD,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,mBAAmB,EAAE;YAC3C,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/resources/drip/drip.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../resource.js";
|
|
2
|
-
import * as QuestsAPI from "./quests.js";
|
|
3
|
-
import { QuestCompleteParams, QuestCompleteResponse, Quests } from "./quests.js";
|
|
4
|
-
import * as StatusAPI from "./status.js";
|
|
5
|
-
import { Status, StatusRetrieveResponse } from "./status.js";
|
|
6
|
-
export declare class Drip extends APIResource {
|
|
7
|
-
quests: QuestsAPI.Quests;
|
|
8
|
-
status: StatusAPI.Status;
|
|
9
|
-
}
|
|
10
|
-
export declare namespace Drip {
|
|
11
|
-
export { Quests as Quests, type QuestCompleteResponse as QuestCompleteResponse, type QuestCompleteParams as QuestCompleteParams, };
|
|
12
|
-
export { Status as Status, type StatusRetrieveResponse as StatusRetrieveResponse };
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=drip.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"drip.d.ts","sourceRoot":"","sources":["../../src/resources/drip/drip.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC9E,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAE1D,qBAAa,IAAK,SAAQ,WAAW;IACnC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAKD,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,sBAAsB,IAAI,sBAAsB,EAAE,CAAC;CACpF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"drip.js","sourceRoot":"","sources":["../../src/resources/drip/drip.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,uDAAsC;AACtC,wCAA8E;AAC9E,uDAAsC;AACtC,wCAA0D;AAE1D,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAHD,oBAGC;AAED,IAAI,CAAC,MAAM,GAAG,eAAM,CAAC;AACrB,IAAI,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
package/resources/drip/drip.mjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../resource.mjs";
|
|
3
|
-
import * as QuestsAPI from "./quests.mjs";
|
|
4
|
-
import { Quests } from "./quests.mjs";
|
|
5
|
-
import * as StatusAPI from "./status.mjs";
|
|
6
|
-
import { Status } from "./status.mjs";
|
|
7
|
-
export class Drip extends APIResource {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.quests = new QuestsAPI.Quests(this._client);
|
|
11
|
-
this.status = new StatusAPI.Status(this._client);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
Drip.Quests = Quests;
|
|
15
|
-
Drip.Status = Status;
|
|
16
|
-
//# sourceMappingURL=drip.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"drip.mjs","sourceRoot":"","sources":["../../src/resources/drip/drip.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAA8C,MAAM,EAAE;OACtD,KAAK,SAAS;OACd,EAAE,MAAM,EAA0B;AAEzC,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAED,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/drip/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACxF,OAAO,EAAE,MAAM,EAAE,KAAK,sBAAsB,EAAE,MAAM,UAAU,CAAC"}
|
package/resources/drip/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Status = exports.Quests = exports.Drip = void 0;
|
|
5
|
-
var drip_1 = require("./drip.js");
|
|
6
|
-
Object.defineProperty(exports, "Drip", { enumerable: true, get: function () { return drip_1.Drip; } });
|
|
7
|
-
var quests_1 = require("./quests.js");
|
|
8
|
-
Object.defineProperty(exports, "Quests", { enumerable: true, get: function () { return quests_1.Quests; } });
|
|
9
|
-
var status_1 = require("./status.js");
|
|
10
|
-
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return status_1.Status; } });
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/drip/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,sCAAwF;AAA/E,gGAAA,MAAM,OAAA;AACf,sCAA+D;AAAtD,gGAAA,MAAM,OAAA"}
|
package/resources/drip/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/drip/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAAwD;OAChE,EAAE,MAAM,EAA+B"}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../resource.js";
|
|
2
|
-
import * as Core from "../../core.js";
|
|
3
|
-
export declare class Quests extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Completes a specified quest for a user and updates their loyalty account balance
|
|
6
|
-
* if applicable. Run asynchronously; use the verification endpoint to check
|
|
7
|
-
* status.
|
|
8
|
-
*/
|
|
9
|
-
complete(dripQuestId: string, body: QuestCompleteParams, options?: Core.RequestOptions): Core.APIPromise<QuestCompleteResponse>;
|
|
10
|
-
}
|
|
11
|
-
export type QuestCompleteResponse = QuestCompleteResponse.Quest | QuestCompleteResponse.UnionMember1;
|
|
12
|
-
export declare namespace QuestCompleteResponse {
|
|
13
|
-
interface Quest {
|
|
14
|
-
/**
|
|
15
|
-
* Schema for a drip quest
|
|
16
|
-
*/
|
|
17
|
-
quest: Quest.Quest;
|
|
18
|
-
}
|
|
19
|
-
namespace Quest {
|
|
20
|
-
/**
|
|
21
|
-
* Schema for a drip quest
|
|
22
|
-
*/
|
|
23
|
-
interface Quest {
|
|
24
|
-
/**
|
|
25
|
-
* Unique identifier for the drip quest
|
|
26
|
-
*/
|
|
27
|
-
id: string;
|
|
28
|
-
/**
|
|
29
|
-
* Amount of reward for completing the quest
|
|
30
|
-
*/
|
|
31
|
-
amount: number;
|
|
32
|
-
/**
|
|
33
|
-
* Text to display on the action button
|
|
34
|
-
*/
|
|
35
|
-
buttonText: string;
|
|
36
|
-
/**
|
|
37
|
-
* Timestamp when the quest was claimed, if applicable
|
|
38
|
-
*/
|
|
39
|
-
claimedAt: string | null;
|
|
40
|
-
/**
|
|
41
|
-
* Indicates if the quest has been completed
|
|
42
|
-
*/
|
|
43
|
-
completed: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Description of the drip quest
|
|
46
|
-
*/
|
|
47
|
-
description: string;
|
|
48
|
-
/**
|
|
49
|
-
* Indicates if the quest has expired
|
|
50
|
-
*/
|
|
51
|
-
expired: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Expiration timestamp of the quest
|
|
54
|
-
*/
|
|
55
|
-
expiresAt: string;
|
|
56
|
-
/**
|
|
57
|
-
* Message associated with the quest
|
|
58
|
-
*/
|
|
59
|
-
message: string;
|
|
60
|
-
/**
|
|
61
|
-
* Array of requirements for the drip quest
|
|
62
|
-
*/
|
|
63
|
-
requirements: Array<Quest.Requirement>;
|
|
64
|
-
/**
|
|
65
|
-
* Title of the drip quest
|
|
66
|
-
*/
|
|
67
|
-
title: string;
|
|
68
|
-
}
|
|
69
|
-
namespace Quest {
|
|
70
|
-
/**
|
|
71
|
-
* A requirement for completing the drip quest
|
|
72
|
-
*/
|
|
73
|
-
interface Requirement {
|
|
74
|
-
/**
|
|
75
|
-
* Array of conditions for the requirement
|
|
76
|
-
*/
|
|
77
|
-
conditions: Array<Requirement.Condition>;
|
|
78
|
-
/**
|
|
79
|
-
* Link associated with the requirement
|
|
80
|
-
*/
|
|
81
|
-
link: string;
|
|
82
|
-
/**
|
|
83
|
-
* Type of the requirement
|
|
84
|
-
*/
|
|
85
|
-
type: string;
|
|
86
|
-
}
|
|
87
|
-
namespace Requirement {
|
|
88
|
-
/**
|
|
89
|
-
* A condition for the requirement
|
|
90
|
-
*/
|
|
91
|
-
interface Condition {
|
|
92
|
-
/**
|
|
93
|
-
* Condition that checks if a user has commented in X
|
|
94
|
-
*/
|
|
95
|
-
hasCommentedInX?: Condition.HasCommentedInX;
|
|
96
|
-
/**
|
|
97
|
-
* Condition that checks if a user has followed X
|
|
98
|
-
*/
|
|
99
|
-
hasFollowedX?: Condition.HasFollowedX;
|
|
100
|
-
/**
|
|
101
|
-
* Condition that checks if a user has liked in X
|
|
102
|
-
*/
|
|
103
|
-
hasLikedInX?: Condition.HasLikedInX;
|
|
104
|
-
/**
|
|
105
|
-
* Condition that checks if a user has reposted in X
|
|
106
|
-
*/
|
|
107
|
-
hasRepostedInX?: Condition.HasRepostedInX;
|
|
108
|
-
}
|
|
109
|
-
namespace Condition {
|
|
110
|
-
/**
|
|
111
|
-
* Condition that checks if a user has commented in X
|
|
112
|
-
*/
|
|
113
|
-
interface HasCommentedInX {
|
|
114
|
-
/**
|
|
115
|
-
* Value for the condition
|
|
116
|
-
*/
|
|
117
|
-
value: string;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Condition that checks if a user has followed X
|
|
121
|
-
*/
|
|
122
|
-
interface HasFollowedX {
|
|
123
|
-
/**
|
|
124
|
-
* Value for the condition
|
|
125
|
-
*/
|
|
126
|
-
value: string;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Condition that checks if a user has liked in X
|
|
130
|
-
*/
|
|
131
|
-
interface HasLikedInX {
|
|
132
|
-
/**
|
|
133
|
-
* Value for the condition
|
|
134
|
-
*/
|
|
135
|
-
value: string;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Condition that checks if a user has reposted in X
|
|
139
|
-
*/
|
|
140
|
-
interface HasRepostedInX {
|
|
141
|
-
/**
|
|
142
|
-
* Value for the condition
|
|
143
|
-
*/
|
|
144
|
-
value: string;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
interface UnionMember1 {
|
|
151
|
-
data: UnionMember1.Data;
|
|
152
|
-
message: string;
|
|
153
|
-
}
|
|
154
|
-
namespace UnionMember1 {
|
|
155
|
-
interface Data {
|
|
156
|
-
verificationId: string;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
export interface QuestCompleteParams {
|
|
161
|
-
organizationId: string;
|
|
162
|
-
websiteId: string;
|
|
163
|
-
userId?: string;
|
|
164
|
-
}
|
|
165
|
-
export declare namespace Quests {
|
|
166
|
-
export { type QuestCompleteResponse as QuestCompleteResponse, type QuestCompleteParams as QuestCompleteParams, };
|
|
167
|
-
}
|
|
168
|
-
//# sourceMappingURL=quests.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quests.d.ts","sourceRoot":"","sources":["../../src/resources/drip/quests.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;OAIG;IACH,QAAQ,CACN,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;CAG1C;AAED,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,CAAC,KAAK,GAAG,qBAAqB,CAAC,YAAY,CAAC;AAErG,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,KAAK;QACpB;;WAEG;QACH,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;KACpB;IAED,UAAiB,KAAK,CAAC;QACrB;;WAEG;QACH,UAAiB,KAAK;YACpB;;eAEG;YACH,EAAE,EAAE,MAAM,CAAC;YAEX;;eAEG;YACH,MAAM,EAAE,MAAM,CAAC;YAEf;;eAEG;YACH,UAAU,EAAE,MAAM,CAAC;YAEnB;;eAEG;YACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;YAEzB;;eAEG;YACH,SAAS,EAAE,OAAO,CAAC;YAEnB;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;YAEpB;;eAEG;YACH,OAAO,EAAE,OAAO,CAAC;YAEjB;;eAEG;YACH,SAAS,EA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UAAiB,YAAY,CAAC;QAC5B,UAAiB,IAAI;YACnB,cAAc,EAAE,MAAM,CAAC;SACxB;KACF;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC,cAAc,EAAE,MAAM,CAAC;IAEvB,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/drip/quests.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Quests = void 0;
|
|
5
|
-
const resource_1 = require("../../resource.js");
|
|
6
|
-
class Quests extends resource_1.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(dripQuestId, body, options) {
|
|
13
|
-
return this._client.post(`/api/drip/quests/${dripQuestId}/complete`, { body, ...options });
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.Quests = Quests;
|
|
17
|
-
//# sourceMappingURL=quests.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quests.js","sourceRoot":"","sources":["../../src/resources/drip/quests.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;OAIG;IACH,QAAQ,CACN,WAAmB,EACnB,IAAyB,EACzB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,WAAW,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF;AAbD,wBAaC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../resource.mjs";
|
|
3
|
-
export class Quests extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Completes a specified quest for a user and updates their loyalty account balance
|
|
6
|
-
* if applicable. Run asynchronously; use the verification endpoint to check
|
|
7
|
-
* status.
|
|
8
|
-
*/
|
|
9
|
-
complete(dripQuestId, body, options) {
|
|
10
|
-
return this._client.post(`/api/drip/quests/${dripQuestId}/complete`, { body, ...options });
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=quests.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quests.mjs","sourceRoot":"","sources":["../../src/resources/drip/quests.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;OAIG;IACH,QAAQ,CACN,WAAmB,EACnB,IAAyB,EACzB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,WAAW,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../resource.js";
|
|
2
|
-
import * as Core from "../../core.js";
|
|
3
|
-
export declare class Status extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves the current status of a drip quest verification using the verification
|
|
6
|
-
* ID.
|
|
7
|
-
*/
|
|
8
|
-
retrieve(verificationId: string, options?: Core.RequestOptions): Core.APIPromise<StatusRetrieveResponse>;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Schema for verification status
|
|
12
|
-
*/
|
|
13
|
-
export interface StatusRetrieveResponse {
|
|
14
|
-
/**
|
|
15
|
-
* Current status of the verification
|
|
16
|
-
*/
|
|
17
|
-
status: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED';
|
|
18
|
-
/**
|
|
19
|
-
* Unique identifier for the verification
|
|
20
|
-
*/
|
|
21
|
-
verificationId: string;
|
|
22
|
-
}
|
|
23
|
-
export declare namespace Status {
|
|
24
|
-
export { type StatusRetrieveResponse as StatusRetrieveResponse };
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=status.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/resources/drip/status.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC;CAGzG;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,QAAQ,CAAC;IAE1D;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,sBAAsB,IAAI,sBAAsB,EAAE,CAAC;CAClE"}
|
package/resources/drip/status.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Status = void 0;
|
|
5
|
-
const resource_1 = require("../../resource.js");
|
|
6
|
-
class Status extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Retrieves the current status of a drip quest verification using the verification
|
|
9
|
-
* ID.
|
|
10
|
-
*/
|
|
11
|
-
retrieve(verificationId, options) {
|
|
12
|
-
return this._client.get(`/api/drip/status/${verificationId}`, options);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.Status = Status;
|
|
16
|
-
//# sourceMappingURL=status.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../src/resources/drip/status.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;OAGG;IACH,QAAQ,CAAC,cAAsB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AARD,wBAQC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../resource.mjs";
|
|
3
|
-
export class Status extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves the current status of a drip quest verification using the verification
|
|
6
|
-
* ID.
|
|
7
|
-
*/
|
|
8
|
-
retrieve(verificationId, options) {
|
|
9
|
-
return this._client.get(`/api/drip/status/${verificationId}`, options);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=status.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"status.mjs","sourceRoot":"","sources":["../../src/resources/drip/status.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,QAAQ,CAAC,cAAsB,EAAE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C;IAE/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Accounts = void 0;
|
|
5
|
-
const resource_1 = require("../../resource.js");
|
|
6
|
-
const core_1 = require("../../core.js");
|
|
7
|
-
class Accounts extends resource_1.APIResource {
|
|
8
|
-
list(query = {}, options) {
|
|
9
|
-
if ((0, core_1.isRequestOptions)(query)) {
|
|
10
|
-
return this.list({}, query);
|
|
11
|
-
}
|
|
12
|
-
return this._client.get('/', { query, ...options });
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.Accounts = Accounts;
|
|
16
|
-
//# sourceMappingURL=accounts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../src/resources/loyalty/accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,MAAa,QAAS,SAAQ,sBAAW;IAMvC,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,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtD,CAAC;CACF;AAfD,4BAeC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../resource.mjs";
|
|
3
|
-
import { isRequestOptions } from "../../core.mjs";
|
|
4
|
-
export class Accounts extends APIResource {
|
|
5
|
-
list(query = {}, options) {
|
|
6
|
-
if (isRequestOptions(query)) {
|
|
7
|
-
return this.list({}, query);
|
|
8
|
-
}
|
|
9
|
-
return this._client.get('/', { query, ...options });
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=accounts.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,QAAS,SAAQ,WAAW;IAMvC,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,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtD,CAAC;CACF"}
|