@snagsolutions/sdk 0.1.0-alpha.13 → 0.1.0-alpha.14
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 +40 -0
- package/README.md +1 -1
- package/core.d.ts.map +1 -1
- package/core.js +12 -6
- package/core.js.map +1 -1
- package/core.mjs +12 -6
- package/core.mjs.map +1 -1
- package/index.d.mts +9 -9
- package/index.d.ts +9 -9
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +29 -8
- package/resources/assets/assets.d.ts +153 -0
- package/resources/assets/assets.d.ts.map +1 -0
- package/resources/assets/assets.js +69 -0
- package/resources/assets/assets.js.map +1 -0
- package/resources/assets/assets.mjs +42 -0
- package/resources/assets/assets.mjs.map +1 -0
- package/resources/assets/index.d.ts +7 -0
- package/resources/assets/index.d.ts.map +1 -0
- package/resources/assets/index.js +17 -0
- package/resources/assets/index.js.map +1 -0
- package/resources/assets/index.mjs +8 -0
- package/resources/assets/index.mjs.map +1 -0
- package/resources/assets/minting.d.ts +95 -0
- package/resources/assets/minting.d.ts.map +1 -0
- package/resources/assets/minting.js +15 -0
- package/resources/assets/minting.js.map +1 -0
- package/resources/assets/minting.mjs +11 -0
- package/resources/assets/minting.mjs.map +1 -0
- package/resources/assets/referral/index.d.ts +3 -0
- package/resources/assets/referral/index.d.ts.map +1 -0
- package/resources/assets/referral/index.js +9 -0
- package/resources/assets/referral/index.js.map +1 -0
- package/resources/assets/referral/index.mjs +4 -0
- package/resources/assets/referral/index.mjs.map +1 -0
- package/resources/assets/referral/referral.d.ts +30 -0
- package/resources/assets/referral/referral.d.ts.map +1 -0
- package/resources/assets/referral/referral.js +46 -0
- package/resources/assets/referral/referral.js.map +1 -0
- package/resources/assets/referral/referral.mjs +19 -0
- package/resources/assets/referral/referral.mjs.map +1 -0
- package/resources/assets/referral/users.d.ts +57 -0
- package/resources/assets/referral/users.d.ts.map +1 -0
- package/resources/assets/referral/users.js +21 -0
- package/resources/assets/referral/users.js.map +1 -0
- package/resources/assets/referral/users.mjs +17 -0
- package/resources/assets/referral/users.mjs.map +1 -0
- package/resources/assets/users.d.ts +285 -0
- package/resources/assets/users.d.ts.map +1 -0
- package/resources/assets/users.js +34 -0
- package/resources/assets/users.js.map +1 -0
- package/resources/assets/users.mjs +30 -0
- package/resources/assets/users.mjs.map +1 -0
- package/resources/assets/website-collections.d.ts +73 -0
- package/resources/assets/website-collections.d.ts.map +1 -0
- package/resources/assets/website-collections.js +25 -0
- package/resources/assets/website-collections.js.map +1 -0
- package/resources/assets/website-collections.mjs +21 -0
- package/resources/assets/website-collections.mjs.map +1 -0
- package/resources/assets/website-user-roles.d.ts +73 -0
- package/resources/assets/website-user-roles.d.ts.map +1 -0
- package/resources/assets/website-user-roles.js +22 -0
- package/resources/assets/website-user-roles.js.map +1 -0
- package/resources/assets/website-user-roles.mjs +18 -0
- package/resources/assets/website-user-roles.mjs.map +1 -0
- package/resources/auction-bids.d.ts +2 -32
- package/resources/auction-bids.d.ts.map +1 -1
- package/resources/auction-bids.js +0 -10
- package/resources/auction-bids.js.map +1 -1
- package/resources/auction-bids.mjs +0 -10
- package/resources/auction-bids.mjs.map +1 -1
- package/resources/drip/drip.d.ts +4 -4
- package/resources/drip/drip.d.ts.map +1 -1
- package/resources/drip/drip.js.map +1 -1
- package/resources/drip/drip.mjs.map +1 -1
- package/resources/drip/index.d.ts +2 -2
- package/resources/drip/index.d.ts.map +1 -1
- package/resources/drip/index.js.map +1 -1
- package/resources/drip/index.mjs.map +1 -1
- package/resources/drip/quests.d.ts +0 -164
- package/resources/drip/quests.d.ts.map +1 -1
- package/resources/drip/quests.js +0 -8
- package/resources/drip/quests.js.map +1 -1
- package/resources/drip/quests.mjs +0 -8
- package/resources/drip/quests.mjs.map +1 -1
- package/resources/drip/status.d.ts +0 -22
- package/resources/drip/status.d.ts.map +1 -1
- package/resources/drip/status.js +0 -7
- package/resources/drip/status.js.map +1 -1
- package/resources/drip/status.mjs +0 -7
- package/resources/drip/status.mjs.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/accounts.d.ts +0 -153
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +0 -7
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +0 -7
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +639 -72
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/currencies.d.ts +1 -7
- package/resources/loyalty/currencies.d.ts.map +1 -1
- package/resources/loyalty/index.d.ts +3 -3
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js +2 -2
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +1 -1
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +7 -7
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +2 -2
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +2 -2
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/multipliers.d.ts +29 -4
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +3 -3
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +3 -3
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/rule-edits.d.ts +1 -1
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +1 -1
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +1 -1
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rules.d.ts +132 -71
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/transaction-entries/accounts.d.ts +191 -0
- package/resources/loyalty/transaction-entries/accounts.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/accounts.js +24 -0
- package/resources/loyalty/transaction-entries/accounts.js.map +1 -0
- package/resources/loyalty/transaction-entries/accounts.mjs +20 -0
- package/resources/loyalty/transaction-entries/accounts.mjs.map +1 -0
- package/resources/loyalty/transaction-entries/index.d.ts +5 -0
- package/resources/loyalty/transaction-entries/index.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/index.js +13 -0
- package/resources/loyalty/transaction-entries/index.js.map +1 -0
- package/resources/loyalty/transaction-entries/index.mjs +6 -0
- package/resources/loyalty/transaction-entries/index.mjs.map +1 -0
- package/resources/loyalty/transaction-entries/questions-responses.d.ts +97 -0
- package/resources/loyalty/transaction-entries/questions-responses.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/questions-responses.js +22 -0
- package/resources/loyalty/transaction-entries/questions-responses.js.map +1 -0
- package/resources/loyalty/transaction-entries/questions-responses.mjs +18 -0
- package/resources/loyalty/transaction-entries/questions-responses.mjs.map +1 -0
- package/resources/loyalty/transaction-entries/questions.d.ts +150 -0
- package/resources/loyalty/transaction-entries/questions.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/questions.js +27 -0
- package/resources/loyalty/transaction-entries/questions.js.map +1 -0
- package/resources/loyalty/transaction-entries/questions.mjs +23 -0
- package/resources/loyalty/transaction-entries/questions.mjs.map +1 -0
- package/resources/loyalty/transaction-entries/transaction-entries.d.ts +300 -0
- package/resources/loyalty/transaction-entries/transaction-entries.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/transaction-entries.js +66 -0
- package/resources/loyalty/transaction-entries/transaction-entries.js.map +1 -0
- package/resources/loyalty/transaction-entries/transaction-entries.mjs +39 -0
- package/resources/loyalty/transaction-entries/transaction-entries.mjs.map +1 -0
- package/resources/users/index.d.ts +2 -2
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs +2 -2
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/metadatas.d.ts +79 -11
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js +6 -0
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs +6 -0
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +4 -4
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +2 -2
- package/resources/users/users.mjs.map +1 -1
- package/resources/users/wallets.d.ts +0 -189
- package/resources/users/wallets.d.ts.map +1 -1
- package/resources/users/wallets.js +0 -19
- package/resources/users/wallets.js.map +1 -1
- package/resources/users/wallets.mjs +0 -19
- package/resources/users/wallets.mjs.map +1 -1
- package/src/core.ts +14 -6
- package/src/index.ts +14 -12
- package/src/resources/assets/assets.ts +294 -0
- package/src/resources/assets/index.ts +38 -0
- package/src/resources/assets/minting.ts +153 -0
- package/src/resources/assets/referral/index.ts +14 -0
- package/src/resources/assets/referral/referral.ts +74 -0
- package/src/resources/assets/referral/users.ts +99 -0
- package/src/resources/assets/users.ts +415 -0
- package/src/resources/assets/website-collections.ts +147 -0
- package/src/resources/assets/website-user-roles.ts +107 -0
- package/src/resources/auction-bids.ts +2 -48
- package/src/resources/drip/drip.ts +4 -8
- package/src/resources/drip/index.ts +2 -2
- package/src/resources/drip/quests.ts +1 -206
- package/src/resources/drip/status.ts +1 -29
- package/src/resources/index.ts +7 -2
- package/src/resources/loyalty/accounts.ts +1 -195
- package/src/resources/loyalty/badges.ts +779 -77
- package/src/resources/loyalty/currencies.ts +1 -7
- package/src/resources/loyalty/index.ts +7 -2
- package/src/resources/loyalty/loyalty.ts +14 -8
- package/src/resources/loyalty/multipliers.ts +49 -4
- package/src/resources/loyalty/rule-edits.ts +2 -2
- package/src/resources/loyalty/rules.ts +247 -159
- package/src/resources/loyalty/transaction-entries/accounts.ts +251 -0
- package/src/resources/loyalty/transaction-entries/index.ts +34 -0
- package/src/resources/loyalty/transaction-entries/questions-responses.ts +146 -0
- package/src/resources/loyalty/transaction-entries/questions.ts +208 -0
- package/src/resources/loyalty/transaction-entries/transaction-entries.ts +525 -0
- package/src/resources/users/index.ts +8 -9
- package/src/resources/users/metadatas.ts +109 -10
- package/src/resources/users/users.ts +11 -17
- package/src/resources/users/wallets.ts +1 -267
- 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/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/src/resources/assets.ts +0 -71
- package/src/resources/loyalty/transaction-entries.ts +0 -229
|
@@ -5,17 +5,6 @@ import { isRequestOptions } from '../core';
|
|
|
5
5
|
import * as Core from '../core';
|
|
6
6
|
|
|
7
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
8
|
/**
|
|
20
9
|
* Returns a list of auction bids with optional filtering and pagination.
|
|
21
10
|
*/
|
|
@@ -36,38 +25,6 @@ export class AuctionBids extends APIResource {
|
|
|
36
25
|
}
|
|
37
26
|
}
|
|
38
27
|
|
|
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
28
|
export interface AuctionBidListParams {
|
|
72
29
|
/**
|
|
73
30
|
* The bid ID
|
|
@@ -82,7 +39,7 @@ export interface AuctionBidListParams {
|
|
|
82
39
|
/**
|
|
83
40
|
* Maximum number of bids to return
|
|
84
41
|
*/
|
|
85
|
-
limit?: number
|
|
42
|
+
limit?: number;
|
|
86
43
|
|
|
87
44
|
/**
|
|
88
45
|
* ID of the organization
|
|
@@ -116,8 +73,5 @@ export interface AuctionBidListParams {
|
|
|
116
73
|
}
|
|
117
74
|
|
|
118
75
|
export declare namespace AuctionBids {
|
|
119
|
-
export {
|
|
120
|
-
type AuctionBidCreateParams as AuctionBidCreateParams,
|
|
121
|
-
type AuctionBidListParams as AuctionBidListParams,
|
|
122
|
-
};
|
|
76
|
+
export { type AuctionBidListParams as AuctionBidListParams };
|
|
123
77
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import * as QuestsAPI from './quests';
|
|
5
|
-
import {
|
|
5
|
+
import { Quests } from './quests';
|
|
6
6
|
import * as StatusAPI from './status';
|
|
7
|
-
import { Status
|
|
7
|
+
import { Status } from './status';
|
|
8
8
|
|
|
9
9
|
export class Drip extends APIResource {
|
|
10
10
|
quests: QuestsAPI.Quests = new QuestsAPI.Quests(this._client);
|
|
@@ -15,11 +15,7 @@ Drip.Quests = Quests;
|
|
|
15
15
|
Drip.Status = Status;
|
|
16
16
|
|
|
17
17
|
export declare namespace Drip {
|
|
18
|
-
export {
|
|
19
|
-
Quests as Quests,
|
|
20
|
-
type QuestCompleteResponse as QuestCompleteResponse,
|
|
21
|
-
type QuestCompleteParams as QuestCompleteParams,
|
|
22
|
-
};
|
|
18
|
+
export { Quests as Quests };
|
|
23
19
|
|
|
24
|
-
export { Status as Status
|
|
20
|
+
export { Status as Status };
|
|
25
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { Drip } from './drip';
|
|
4
|
-
export { Quests
|
|
5
|
-
export { Status
|
|
4
|
+
export { Quests } from './quests';
|
|
5
|
+
export { Status } from './status';
|
|
@@ -1,210 +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 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
|
-
}
|
|
5
|
+
export class Quests extends APIResource {}
|
|
@@ -1,33 +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 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
|
-
}
|
|
5
|
+
export class Status extends APIResource {}
|
package/src/resources/index.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
4
|
-
|
|
3
|
+
export {
|
|
4
|
+
Assets,
|
|
5
|
+
type AssetCreateResponse,
|
|
6
|
+
type AssetGetAuctionsResponse,
|
|
7
|
+
type AssetCreateParams,
|
|
8
|
+
} from './assets/assets';
|
|
9
|
+
export { AuctionBids, type AuctionBidListParams } from './auction-bids';
|
|
5
10
|
export { Drip } from './drip/drip';
|
|
6
11
|
export { Loyalty } from './loyalty/loyalty';
|
|
7
12
|
export { Users } from './users/users';
|
|
@@ -1,199 +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 { isRequestOptions } from '../../core';
|
|
5
|
-
import * as Core from '../../core';
|
|
6
4
|
|
|
7
|
-
export class Accounts extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Get loyalty accounts
|
|
10
|
-
*/
|
|
11
|
-
list(query?: AccountListParams, options?: Core.RequestOptions): Core.APIPromise<AccountListResponse>;
|
|
12
|
-
list(options?: Core.RequestOptions): Core.APIPromise<AccountListResponse>;
|
|
13
|
-
list(
|
|
14
|
-
query: AccountListParams | Core.RequestOptions = {},
|
|
15
|
-
options?: Core.RequestOptions,
|
|
16
|
-
): Core.APIPromise<AccountListResponse> {
|
|
17
|
-
if (isRequestOptions(query)) {
|
|
18
|
-
return this.list({}, query);
|
|
19
|
-
}
|
|
20
|
-
return this._client.get('/', { query, ...options });
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Schema for the response of getting loyalty accounts
|
|
26
|
-
*/
|
|
27
|
-
export interface AccountListResponse {
|
|
28
|
-
/**
|
|
29
|
-
* Array of loyalty accounts
|
|
30
|
-
*/
|
|
31
|
-
data: Array<AccountListResponse.Data>;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Indicates if there is a next page of results
|
|
35
|
-
*/
|
|
36
|
-
hasNextPage: boolean;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Optional message
|
|
40
|
-
*/
|
|
41
|
-
message?: string;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export namespace AccountListResponse {
|
|
45
|
-
/**
|
|
46
|
-
* Schema for a loyalty account
|
|
47
|
-
*/
|
|
48
|
-
export interface Data {
|
|
49
|
-
/**
|
|
50
|
-
* Unique identifier for the loyalty account
|
|
51
|
-
*/
|
|
52
|
-
id: string;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Unique identifier for the loyalty currency
|
|
56
|
-
*/
|
|
57
|
-
loyaltyCurrencyId: string;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* User associated with the loyalty account
|
|
61
|
-
*/
|
|
62
|
-
user: Data.User | null;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Unique identifier for the user
|
|
66
|
-
*/
|
|
67
|
-
userId: string | null;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Balance amount in the loyalty account
|
|
71
|
-
*/
|
|
72
|
-
amount?: unknown;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Version number used for optimistic locking
|
|
76
|
-
*/
|
|
77
|
-
lockVersion?: unknown;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export namespace Data {
|
|
81
|
-
/**
|
|
82
|
-
* Schema for a user
|
|
83
|
-
*/
|
|
84
|
-
export interface User {
|
|
85
|
-
/**
|
|
86
|
-
* Unique identifier for the user
|
|
87
|
-
*/
|
|
88
|
-
id: string;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Array of metadata associated with the user
|
|
92
|
-
*/
|
|
93
|
-
userMetadata: Array<User.UserMetadata>;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Ethereum wallet address of the user
|
|
97
|
-
*/
|
|
98
|
-
walletAddress: string | null;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export namespace User {
|
|
102
|
-
/**
|
|
103
|
-
* Schema for user metadata
|
|
104
|
-
*/
|
|
105
|
-
export interface UserMetadata {
|
|
106
|
-
/**
|
|
107
|
-
* Discord username associated with the user
|
|
108
|
-
*/
|
|
109
|
-
discordUser: string | null;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Display name of the user
|
|
113
|
-
*/
|
|
114
|
-
displayName: string | null;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* URL of the user's logo
|
|
118
|
-
*/
|
|
119
|
-
logoUrl: string | null;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Twitter username associated with the user
|
|
123
|
-
*/
|
|
124
|
-
twitterUser: string | null;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Identifier for the wallet group
|
|
128
|
-
*/
|
|
129
|
-
walletGroupIdentifier: string | null;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export interface AccountListParams {
|
|
136
|
-
/**
|
|
137
|
-
* Discord username to filter accounts by
|
|
138
|
-
*/
|
|
139
|
-
discordUser?: string;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Whether to include wallet group information
|
|
143
|
-
*/
|
|
144
|
-
includeWalletGroup?: boolean | null;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Maximum number of accounts to return
|
|
148
|
-
*/
|
|
149
|
-
limit?: number | null;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Unique identifier for the loyalty currency
|
|
153
|
-
*/
|
|
154
|
-
loyaltyCurrencyId?: string;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Order the accounts by amount in ascending or descending order
|
|
158
|
-
*/
|
|
159
|
-
'orderBy[amount]'?: 'asc' | 'desc';
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Unique identifier for the organization to filter by
|
|
163
|
-
*/
|
|
164
|
-
organizationId?: string;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Pagination cursor to start after a specific account ID
|
|
168
|
-
*/
|
|
169
|
-
startingAfter?: string;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Twitter username to filter accounts by
|
|
173
|
-
*/
|
|
174
|
-
twitterUser?: string;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* User ID(s) to filter accounts by
|
|
178
|
-
*/
|
|
179
|
-
userId?: string | Array<string>;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Wallet address(es) to filter accounts by
|
|
183
|
-
*/
|
|
184
|
-
walletAddress?: string | Array<string>;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Wallet group identifier to filter accounts by
|
|
188
|
-
*/
|
|
189
|
-
walletGroupIdentifier?: string;
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Unique identifier for the website to filter by
|
|
193
|
-
*/
|
|
194
|
-
websiteId?: string;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export declare namespace Accounts {
|
|
198
|
-
export { type AccountListResponse as AccountListResponse, type AccountListParams as AccountListParams };
|
|
199
|
-
}
|
|
5
|
+
export class Accounts extends APIResource {}
|