@snagsolutions/sdk 0.1.0-alpha.182 → 0.1.0-alpha.184
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auctions/auctions.d.ts +62 -4
- package/resources/auctions/auctions.d.ts.map +1 -1
- package/resources/auctions/auctions.js +1 -5
- package/resources/auctions/auctions.js.map +1 -1
- package/resources/auctions/auctions.mjs +1 -5
- package/resources/auctions/auctions.mjs.map +1 -1
- package/resources/auctions/index.d.ts +1 -1
- package/resources/auctions/index.d.ts.map +1 -1
- package/resources/auctions/index.js.map +1 -1
- package/resources/auctions/index.mjs.map +1 -1
- package/resources/auctions/website-user-attributes/values.d.ts +6 -2
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +6 -2
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +212 -203
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/questions-responses.d.ts +16 -4
- package/resources/loyalty/questions-responses.d.ts.map +1 -1
- package/resources/loyalty/questions.d.ts +15 -4
- package/resources/loyalty/questions.d.ts.map +1 -1
- package/resources/referral/users.d.ts +4 -5
- package/resources/referral/users.d.ts.map +1 -1
- package/resources/referral/users.js +5 -11
- package/resources/referral/users.js.map +1 -1
- package/resources/referral/users.mjs +5 -11
- package/resources/referral/users.mjs.map +1 -1
- package/resources/users/users.d.ts +4 -0
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs.map +1 -1
- package/src/index.ts +2 -0
- package/src/resources/auctions/auctions.ts +101 -9
- package/src/resources/auctions/index.ts +1 -0
- package/src/resources/auctions/website-user-attributes/values.ts +7 -2
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +7 -2
- package/src/resources/index.ts +1 -0
- package/src/resources/loyalty/badges.ts +230 -219
- package/src/resources/loyalty/questions-responses.ts +19 -4
- package/src/resources/loyalty/questions.ts +18 -4
- package/src/resources/referral/users.ts +13 -6
- package/src/resources/users/users.ts +5 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
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';
|
|
4
5
|
import * as Core from '../../core';
|
|
5
6
|
|
|
6
7
|
export class Users extends APIResource {
|
|
@@ -23,12 +24,18 @@ export class Users extends APIResource {
|
|
|
23
24
|
*
|
|
24
25
|
* @example
|
|
25
26
|
* ```ts
|
|
26
|
-
* const users = await client.referral.users.list(
|
|
27
|
-
* walletAddress: 'string',
|
|
28
|
-
* });
|
|
27
|
+
* const users = await client.referral.users.list();
|
|
29
28
|
* ```
|
|
30
29
|
*/
|
|
31
|
-
list(query
|
|
30
|
+
list(query?: UserListParams, options?: Core.RequestOptions): Core.APIPromise<UserListResponse>;
|
|
31
|
+
list(options?: Core.RequestOptions): Core.APIPromise<UserListResponse>;
|
|
32
|
+
list(
|
|
33
|
+
query: UserListParams | Core.RequestOptions = {},
|
|
34
|
+
options?: Core.RequestOptions,
|
|
35
|
+
): Core.APIPromise<UserListResponse> {
|
|
36
|
+
if (isRequestOptions(query)) {
|
|
37
|
+
return this.list({}, query);
|
|
38
|
+
}
|
|
32
39
|
return this._client.get('/api/referral/users', { query, ...options });
|
|
33
40
|
}
|
|
34
41
|
}
|
|
@@ -101,8 +108,6 @@ export interface UserCreateParams {
|
|
|
101
108
|
}
|
|
102
109
|
|
|
103
110
|
export interface UserListParams {
|
|
104
|
-
walletAddress: string | Array<string>;
|
|
105
|
-
|
|
106
111
|
limit?: number;
|
|
107
112
|
|
|
108
113
|
loyaltyRuleId?: string;
|
|
@@ -111,6 +116,8 @@ export interface UserListParams {
|
|
|
111
116
|
|
|
112
117
|
startingAfter?: string;
|
|
113
118
|
|
|
119
|
+
walletAddress?: string | Array<string>;
|
|
120
|
+
|
|
114
121
|
websiteId?: string;
|
|
115
122
|
}
|
|
116
123
|
|
|
@@ -127,6 +127,11 @@ export interface UserListResponse {
|
|
|
127
127
|
* Schema for users response
|
|
128
128
|
*/
|
|
129
129
|
data: Array<UserListResponse.Data>;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Indicates if there is a next page of results
|
|
133
|
+
*/
|
|
134
|
+
hasNextPage: boolean;
|
|
130
135
|
}
|
|
131
136
|
|
|
132
137
|
export namespace UserListResponse {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.184'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.184";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.184'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.184'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|