featurebase-node 0.3.0 → 0.4.0
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 +9 -0
- package/README.md +31 -0
- package/client.d.mts +12 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -6
- package/client.d.ts.map +1 -1
- package/client.js +10 -0
- package/client.js.map +1 -1
- package/client.mjs +10 -0
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +54 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +54 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +101 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +95 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/package.json +11 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/changelogs/changelogs.d.mts +9 -53
- package/resources/changelogs/changelogs.d.mts.map +1 -1
- package/resources/changelogs/changelogs.d.ts +9 -53
- package/resources/changelogs/changelogs.d.ts.map +1 -1
- package/resources/changelogs/changelogs.js +6 -2
- package/resources/changelogs/changelogs.js.map +1 -1
- package/resources/changelogs/changelogs.mjs +6 -2
- package/resources/changelogs/changelogs.mjs.map +1 -1
- package/resources/changelogs/index.d.mts +1 -1
- package/resources/changelogs/index.d.mts.map +1 -1
- package/resources/changelogs/index.d.ts +1 -1
- package/resources/changelogs/index.d.ts.map +1 -1
- package/resources/feedback/comments.d.mts +9 -53
- package/resources/feedback/comments.d.mts.map +1 -1
- package/resources/feedback/comments.d.ts +9 -53
- package/resources/feedback/comments.d.ts.map +1 -1
- package/resources/feedback/comments.js +6 -2
- package/resources/feedback/comments.js.map +1 -1
- package/resources/feedback/comments.mjs +6 -2
- package/resources/feedback/comments.mjs.map +1 -1
- package/resources/feedback/feedback.d.mts +4 -4
- package/resources/feedback/feedback.d.mts.map +1 -1
- package/resources/feedback/feedback.d.ts +4 -4
- package/resources/feedback/feedback.d.ts.map +1 -1
- package/resources/feedback/feedback.mjs.map +1 -1
- package/resources/feedback/index.d.mts +2 -2
- package/resources/feedback/index.d.mts.map +1 -1
- package/resources/feedback/index.d.ts +2 -2
- package/resources/feedback/index.d.ts.map +1 -1
- package/resources/feedback/posts/index.d.mts +2 -2
- package/resources/feedback/posts/index.d.mts.map +1 -1
- package/resources/feedback/posts/index.d.ts +2 -2
- package/resources/feedback/posts/index.d.ts.map +1 -1
- package/resources/feedback/posts/index.js.map +1 -1
- package/resources/feedback/posts/index.mjs.map +1 -1
- package/resources/feedback/posts/posts.d.mts +11 -56
- package/resources/feedback/posts/posts.d.mts.map +1 -1
- package/resources/feedback/posts/posts.d.ts +11 -56
- package/resources/feedback/posts/posts.d.ts.map +1 -1
- package/resources/feedback/posts/posts.js +6 -2
- package/resources/feedback/posts/posts.js.map +1 -1
- package/resources/feedback/posts/posts.mjs +6 -2
- package/resources/feedback/posts/posts.mjs.map +1 -1
- package/resources/feedback/posts/voters.d.mts +79 -124
- package/resources/feedback/posts/voters.d.mts.map +1 -1
- package/resources/feedback/posts/voters.d.ts +79 -124
- package/resources/feedback/posts/voters.d.ts.map +1 -1
- package/resources/feedback/posts/voters.js +7 -3
- package/resources/feedback/posts/voters.js.map +1 -1
- package/resources/feedback/posts/voters.mjs +7 -3
- package/resources/feedback/posts/voters.mjs.map +1 -1
- package/resources/help-center/articles.d.mts +9 -27
- package/resources/help-center/articles.d.mts.map +1 -1
- package/resources/help-center/articles.d.ts +9 -27
- package/resources/help-center/articles.d.ts.map +1 -1
- package/resources/help-center/articles.js +6 -2
- package/resources/help-center/articles.js.map +1 -1
- package/resources/help-center/articles.mjs +6 -2
- package/resources/help-center/articles.mjs.map +1 -1
- package/resources/help-center/collections.d.mts +9 -28
- package/resources/help-center/collections.d.mts.map +1 -1
- package/resources/help-center/collections.d.ts +9 -28
- package/resources/help-center/collections.d.ts.map +1 -1
- package/resources/help-center/collections.js +6 -3
- package/resources/help-center/collections.js.map +1 -1
- package/resources/help-center/collections.mjs +6 -3
- package/resources/help-center/collections.mjs.map +1 -1
- package/resources/help-center/help-center.d.mts +8 -8
- package/resources/help-center/help-center.d.mts.map +1 -1
- package/resources/help-center/help-center.d.ts +8 -8
- package/resources/help-center/help-center.d.ts.map +1 -1
- package/resources/help-center/help-center.mjs.map +1 -1
- package/resources/help-center/help-centers.d.mts +9 -28
- package/resources/help-center/help-centers.d.mts.map +1 -1
- package/resources/help-center/help-centers.d.ts +9 -28
- package/resources/help-center/help-centers.d.ts.map +1 -1
- package/resources/help-center/help-centers.js +6 -3
- package/resources/help-center/help-centers.js.map +1 -1
- package/resources/help-center/help-centers.mjs +6 -3
- package/resources/help-center/help-centers.mjs.map +1 -1
- package/resources/help-center/index.d.mts +4 -4
- package/resources/help-center/index.d.mts.map +1 -1
- package/resources/help-center/index.d.ts +4 -4
- package/resources/help-center/index.d.ts.map +1 -1
- package/resources/help-center/redirect-rules.d.mts +9 -28
- package/resources/help-center/redirect-rules.d.mts.map +1 -1
- package/resources/help-center/redirect-rules.d.ts +9 -28
- package/resources/help-center/redirect-rules.d.ts.map +1 -1
- package/resources/help-center/redirect-rules.js +6 -3
- package/resources/help-center/redirect-rules.js.map +1 -1
- package/resources/help-center/redirect-rules.mjs +6 -3
- package/resources/help-center/redirect-rules.mjs.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/organization/brands.d.mts +5 -26
- package/resources/organization/brands.d.mts.map +1 -1
- package/resources/organization/brands.d.ts +5 -26
- package/resources/organization/brands.d.ts.map +1 -1
- package/resources/organization/brands.js +2 -1
- package/resources/organization/brands.js.map +1 -1
- package/resources/organization/brands.mjs +2 -1
- package/resources/organization/brands.mjs.map +1 -1
- package/resources/organization/index.d.mts +1 -1
- package/resources/organization/index.d.mts.map +1 -1
- package/resources/organization/index.d.ts +1 -1
- package/resources/organization/index.d.ts.map +1 -1
- package/resources/organization/organization.d.mts +2 -2
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +2 -2
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.js.map +1 -1
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/support/conversations/conversations.d.mts +9 -28
- package/resources/support/conversations/conversations.d.mts.map +1 -1
- package/resources/support/conversations/conversations.d.ts +9 -28
- package/resources/support/conversations/conversations.d.ts.map +1 -1
- package/resources/support/conversations/conversations.js +6 -3
- package/resources/support/conversations/conversations.js.map +1 -1
- package/resources/support/conversations/conversations.mjs +6 -3
- package/resources/support/conversations/conversations.mjs.map +1 -1
- package/resources/support/conversations/index.d.mts +1 -1
- package/resources/support/conversations/index.d.mts.map +1 -1
- package/resources/support/conversations/index.d.ts +1 -1
- package/resources/support/conversations/index.d.ts.map +1 -1
- package/resources/support/index.d.mts +2 -2
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +2 -2
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/support.d.mts +4 -4
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +4 -4
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets/index.d.mts +1 -1
- package/resources/support/tickets/index.d.mts.map +1 -1
- package/resources/support/tickets/index.d.ts +1 -1
- package/resources/support/tickets/index.d.ts.map +1 -1
- package/resources/support/tickets/tickets.d.mts +9 -27
- package/resources/support/tickets/tickets.d.mts.map +1 -1
- package/resources/support/tickets/tickets.d.ts +9 -27
- package/resources/support/tickets/tickets.d.ts.map +1 -1
- package/resources/support/tickets/tickets.js +6 -2
- package/resources/support/tickets/tickets.js.map +1 -1
- package/resources/support/tickets/tickets.mjs +6 -2
- package/resources/support/tickets/tickets.mjs.map +1 -1
- package/resources/surveys.d.mts +34 -79
- package/resources/surveys.d.mts.map +1 -1
- package/resources/surveys.d.ts +34 -79
- package/resources/surveys.d.ts.map +1 -1
- package/resources/surveys.js +4 -3
- package/resources/surveys.js.map +1 -1
- package/resources/surveys.mjs +4 -3
- package/resources/surveys.mjs.map +1 -1
- package/resources/users/companies/companies.d.mts +9 -28
- package/resources/users/companies/companies.d.mts.map +1 -1
- package/resources/users/companies/companies.d.ts +9 -28
- package/resources/users/companies/companies.d.ts.map +1 -1
- package/resources/users/companies/companies.js +6 -2
- package/resources/users/companies/companies.js.map +1 -1
- package/resources/users/companies/companies.mjs +6 -2
- package/resources/users/companies/companies.mjs.map +1 -1
- package/resources/users/companies/contacts.d.mts +11 -16
- package/resources/users/companies/contacts.d.mts.map +1 -1
- package/resources/users/companies/contacts.d.ts +11 -16
- package/resources/users/companies/contacts.d.ts.map +1 -1
- package/resources/users/companies/contacts.js +8 -5
- package/resources/users/companies/contacts.js.map +1 -1
- package/resources/users/companies/contacts.mjs +8 -5
- package/resources/users/companies/contacts.mjs.map +1 -1
- package/resources/users/companies/index.d.mts +1 -1
- package/resources/users/companies/index.d.mts.map +1 -1
- package/resources/users/companies/index.d.ts +1 -1
- package/resources/users/companies/index.d.ts.map +1 -1
- package/resources/users/contacts/contacts.d.mts +9 -13
- package/resources/users/contacts/contacts.d.mts.map +1 -1
- package/resources/users/contacts/contacts.d.ts +9 -13
- package/resources/users/contacts/contacts.d.ts.map +1 -1
- package/resources/users/contacts/contacts.js +6 -2
- package/resources/users/contacts/contacts.js.map +1 -1
- package/resources/users/contacts/contacts.mjs +6 -2
- package/resources/users/contacts/contacts.mjs.map +1 -1
- package/resources/users/contacts/index.d.mts +1 -1
- package/resources/users/contacts/index.d.mts.map +1 -1
- package/resources/users/contacts/index.d.ts +1 -1
- package/resources/users/contacts/index.d.ts.map +1 -1
- package/resources/users/contacts/index.js.map +1 -1
- package/resources/users/contacts/index.mjs.map +1 -1
- package/resources/users/index.d.mts +2 -2
- package/resources/users/index.d.mts.map +1 -1
- 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.map +1 -1
- package/resources/users/users.d.mts +4 -4
- package/resources/users/users.d.mts.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.map +1 -1
- package/resources/webhooks.d.mts +9 -27
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +9 -27
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +6 -2
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +6 -2
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +41 -10
- package/src/core/pagination.ts +157 -0
- package/src/index.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resources/changelogs/changelogs.ts +11 -64
- package/src/resources/changelogs/index.ts +1 -1
- package/src/resources/feedback/comments.ts +11 -64
- package/src/resources/feedback/feedback.ts +4 -4
- package/src/resources/feedback/index.ts +2 -2
- package/src/resources/feedback/posts/index.ts +2 -1
- package/src/resources/feedback/posts/posts.ts +13 -65
- package/src/resources/feedback/posts/voters.ts +87 -140
- package/src/resources/help-center/articles.ts +11 -33
- package/src/resources/help-center/collections.ts +11 -34
- package/src/resources/help-center/help-center.ts +8 -8
- package/src/resources/help-center/help-centers.ts +11 -34
- package/src/resources/help-center/index.ts +4 -4
- package/src/resources/help-center/redirect-rules.ts +11 -34
- package/src/resources/index.ts +6 -5
- package/src/resources/organization/brands.ts +7 -32
- package/src/resources/organization/index.ts +1 -1
- package/src/resources/organization/organization.ts +2 -2
- package/src/resources/support/conversations/conversations.ts +11 -34
- package/src/resources/support/conversations/index.ts +1 -1
- package/src/resources/support/index.ts +2 -2
- package/src/resources/support/support.ts +4 -4
- package/src/resources/support/tickets/index.ts +1 -1
- package/src/resources/support/tickets/tickets.ts +11 -33
- package/src/resources/surveys.ts +54 -102
- package/src/resources/users/companies/companies.ts +11 -34
- package/src/resources/users/companies/contacts.ts +24 -26
- package/src/resources/users/companies/index.ts +1 -1
- package/src/resources/users/contacts/contacts.ts +14 -15
- package/src/resources/users/contacts/index.ts +1 -0
- package/src/resources/users/index.ts +2 -1
- package/src/resources/users/users.ts +4 -2
- package/src/resources/webhooks.ts +11 -33
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.mjs";
|
|
3
4
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
5
|
/**
|
|
5
6
|
* Help centers allow organizations to create and manage knowledge bases with articles and collections. Currently, Featurebase supports one help center per organization.
|
|
@@ -157,11 +158,13 @@ export declare class RedirectRules extends APIResource {
|
|
|
157
158
|
*
|
|
158
159
|
* @example
|
|
159
160
|
* ```ts
|
|
160
|
-
*
|
|
161
|
-
*
|
|
161
|
+
* // Automatically fetches more pages as needed.
|
|
162
|
+
* for await (const redirectRule of client.helpCenter.redirectRules.list()) {
|
|
163
|
+
* // ...
|
|
164
|
+
* }
|
|
162
165
|
* ```
|
|
163
166
|
*/
|
|
164
|
-
list(params?: RedirectRuleListParams | null | undefined, options?: RequestOptions):
|
|
167
|
+
list(params?: RedirectRuleListParams | null | undefined, options?: RequestOptions): PagePromise<RedirectRulesCursorPage, RedirectRule>;
|
|
165
168
|
/**
|
|
166
169
|
* Deletes an existing redirect rule. The associated Redis cache entry is also
|
|
167
170
|
* invalidated.
|
|
@@ -231,6 +234,7 @@ export declare class RedirectRules extends APIResource {
|
|
|
231
234
|
*/
|
|
232
235
|
retrieveByURL(params: RedirectRuleRetrieveByURLParams, options?: RequestOptions): APIPromise<RedirectRule>;
|
|
233
236
|
}
|
|
237
|
+
export type RedirectRulesCursorPage = CursorPage<RedirectRule>;
|
|
234
238
|
export interface RedirectRule {
|
|
235
239
|
/**
|
|
236
240
|
* Redirect rule unique identifier
|
|
@@ -269,20 +273,6 @@ export interface RedirectRule {
|
|
|
269
273
|
*/
|
|
270
274
|
updatedAt: string;
|
|
271
275
|
}
|
|
272
|
-
export interface RedirectRuleListResponse {
|
|
273
|
-
/**
|
|
274
|
-
* Array of redirect rules
|
|
275
|
-
*/
|
|
276
|
-
data: Array<RedirectRule>;
|
|
277
|
-
/**
|
|
278
|
-
* Cursor for fetching the next page. Null if there are no more results.
|
|
279
|
-
*/
|
|
280
|
-
nextCursor: string | null;
|
|
281
|
-
/**
|
|
282
|
-
* Object type identifier
|
|
283
|
-
*/
|
|
284
|
-
object: 'list';
|
|
285
|
-
}
|
|
286
276
|
export interface RedirectRuleDeleteResponse {
|
|
287
277
|
/**
|
|
288
278
|
* Unique identifier of the deleted redirect rule
|
|
@@ -363,20 +353,11 @@ export interface RedirectRuleUpdateParams {
|
|
|
363
353
|
*/
|
|
364
354
|
'Featurebase-Version'?: string;
|
|
365
355
|
}
|
|
366
|
-
export interface RedirectRuleListParams {
|
|
367
|
-
/**
|
|
368
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
369
|
-
* previous response to fetch the next page.
|
|
370
|
-
*/
|
|
371
|
-
cursor?: string;
|
|
356
|
+
export interface RedirectRuleListParams extends CursorPageParams {
|
|
372
357
|
/**
|
|
373
358
|
* Query param: Filter redirect rules by help center ID
|
|
374
359
|
*/
|
|
375
360
|
helpCenterId?: string;
|
|
376
|
-
/**
|
|
377
|
-
* Query param: A limit on the number of objects to be returned, between 1 and 100.
|
|
378
|
-
*/
|
|
379
|
-
limit?: number;
|
|
380
361
|
/**
|
|
381
362
|
* Query param: Filter redirect rules by locale
|
|
382
363
|
*/
|
|
@@ -412,6 +393,6 @@ export interface RedirectRuleRetrieveByURLParams {
|
|
|
412
393
|
'Featurebase-Version'?: string;
|
|
413
394
|
}
|
|
414
395
|
export declare namespace RedirectRules {
|
|
415
|
-
export { type RedirectRule as RedirectRule, type
|
|
396
|
+
export { type RedirectRule as RedirectRule, type RedirectRuleDeleteResponse as RedirectRuleDeleteResponse, type RedirectRulesCursorPage as RedirectRulesCursorPage, type RedirectRuleCreateParams as RedirectRuleCreateParams, type RedirectRuleRetrieveParams as RedirectRuleRetrieveParams, type RedirectRuleUpdateParams as RedirectRuleUpdateParams, type RedirectRuleListParams as RedirectRuleListParams, type RedirectRuleDeleteParams as RedirectRuleDeleteParams, type RedirectRuleRetrieveByURLParams as RedirectRuleRetrieveByURLParams, };
|
|
416
397
|
}
|
|
417
398
|
//# sourceMappingURL=redirect-rules.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redirect-rules.d.mts","sourceRoot":"","sources":["../../src/resources/help-center/redirect-rules.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"redirect-rules.d.mts","sourceRoot":"","sources":["../../src/resources/help-center/redirect-rules.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;IACH,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc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,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.js";
|
|
3
4
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
5
|
/**
|
|
5
6
|
* Help centers allow organizations to create and manage knowledge bases with articles and collections. Currently, Featurebase supports one help center per organization.
|
|
@@ -157,11 +158,13 @@ export declare class RedirectRules extends APIResource {
|
|
|
157
158
|
*
|
|
158
159
|
* @example
|
|
159
160
|
* ```ts
|
|
160
|
-
*
|
|
161
|
-
*
|
|
161
|
+
* // Automatically fetches more pages as needed.
|
|
162
|
+
* for await (const redirectRule of client.helpCenter.redirectRules.list()) {
|
|
163
|
+
* // ...
|
|
164
|
+
* }
|
|
162
165
|
* ```
|
|
163
166
|
*/
|
|
164
|
-
list(params?: RedirectRuleListParams | null | undefined, options?: RequestOptions):
|
|
167
|
+
list(params?: RedirectRuleListParams | null | undefined, options?: RequestOptions): PagePromise<RedirectRulesCursorPage, RedirectRule>;
|
|
165
168
|
/**
|
|
166
169
|
* Deletes an existing redirect rule. The associated Redis cache entry is also
|
|
167
170
|
* invalidated.
|
|
@@ -231,6 +234,7 @@ export declare class RedirectRules extends APIResource {
|
|
|
231
234
|
*/
|
|
232
235
|
retrieveByURL(params: RedirectRuleRetrieveByURLParams, options?: RequestOptions): APIPromise<RedirectRule>;
|
|
233
236
|
}
|
|
237
|
+
export type RedirectRulesCursorPage = CursorPage<RedirectRule>;
|
|
234
238
|
export interface RedirectRule {
|
|
235
239
|
/**
|
|
236
240
|
* Redirect rule unique identifier
|
|
@@ -269,20 +273,6 @@ export interface RedirectRule {
|
|
|
269
273
|
*/
|
|
270
274
|
updatedAt: string;
|
|
271
275
|
}
|
|
272
|
-
export interface RedirectRuleListResponse {
|
|
273
|
-
/**
|
|
274
|
-
* Array of redirect rules
|
|
275
|
-
*/
|
|
276
|
-
data: Array<RedirectRule>;
|
|
277
|
-
/**
|
|
278
|
-
* Cursor for fetching the next page. Null if there are no more results.
|
|
279
|
-
*/
|
|
280
|
-
nextCursor: string | null;
|
|
281
|
-
/**
|
|
282
|
-
* Object type identifier
|
|
283
|
-
*/
|
|
284
|
-
object: 'list';
|
|
285
|
-
}
|
|
286
276
|
export interface RedirectRuleDeleteResponse {
|
|
287
277
|
/**
|
|
288
278
|
* Unique identifier of the deleted redirect rule
|
|
@@ -363,20 +353,11 @@ export interface RedirectRuleUpdateParams {
|
|
|
363
353
|
*/
|
|
364
354
|
'Featurebase-Version'?: string;
|
|
365
355
|
}
|
|
366
|
-
export interface RedirectRuleListParams {
|
|
367
|
-
/**
|
|
368
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
369
|
-
* previous response to fetch the next page.
|
|
370
|
-
*/
|
|
371
|
-
cursor?: string;
|
|
356
|
+
export interface RedirectRuleListParams extends CursorPageParams {
|
|
372
357
|
/**
|
|
373
358
|
* Query param: Filter redirect rules by help center ID
|
|
374
359
|
*/
|
|
375
360
|
helpCenterId?: string;
|
|
376
|
-
/**
|
|
377
|
-
* Query param: A limit on the number of objects to be returned, between 1 and 100.
|
|
378
|
-
*/
|
|
379
|
-
limit?: number;
|
|
380
361
|
/**
|
|
381
362
|
* Query param: Filter redirect rules by locale
|
|
382
363
|
*/
|
|
@@ -412,6 +393,6 @@ export interface RedirectRuleRetrieveByURLParams {
|
|
|
412
393
|
'Featurebase-Version'?: string;
|
|
413
394
|
}
|
|
414
395
|
export declare namespace RedirectRules {
|
|
415
|
-
export { type RedirectRule as RedirectRule, type
|
|
396
|
+
export { type RedirectRule as RedirectRule, type RedirectRuleDeleteResponse as RedirectRuleDeleteResponse, type RedirectRulesCursorPage as RedirectRulesCursorPage, type RedirectRuleCreateParams as RedirectRuleCreateParams, type RedirectRuleRetrieveParams as RedirectRuleRetrieveParams, type RedirectRuleUpdateParams as RedirectRuleUpdateParams, type RedirectRuleListParams as RedirectRuleListParams, type RedirectRuleDeleteParams as RedirectRuleDeleteParams, type RedirectRuleRetrieveByURLParams as RedirectRuleRetrieveByURLParams, };
|
|
416
397
|
}
|
|
417
398
|
//# sourceMappingURL=redirect-rules.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redirect-rules.d.ts","sourceRoot":"","sources":["../../src/resources/help-center/redirect-rules.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"redirect-rules.d.ts","sourceRoot":"","sources":["../../src/resources/help-center/redirect-rules.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;IACH,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAY5F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,0BAA0B,GAAG,IAAI,GAAG,SAAc,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC;IAW3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,MAAM,CAAC,EAAE,E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Rules = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
6
7
|
const headers_1 = require("../../internal/headers.js");
|
|
7
8
|
const path_1 = require("../../internal/utils/path.js");
|
|
8
9
|
/**
|
|
@@ -190,13 +191,15 @@ class RedirectRules extends resource_1.APIResource {
|
|
|
190
191
|
*
|
|
191
192
|
* @example
|
|
192
193
|
* ```ts
|
|
193
|
-
*
|
|
194
|
-
*
|
|
194
|
+
* // Automatically fetches more pages as needed.
|
|
195
|
+
* for await (const redirectRule of client.helpCenter.redirectRules.list()) {
|
|
196
|
+
* // ...
|
|
197
|
+
* }
|
|
195
198
|
* ```
|
|
196
199
|
*/
|
|
197
200
|
list(params = {}, options) {
|
|
198
201
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
199
|
-
return this._client.
|
|
202
|
+
return this._client.getAPIList('/v2/help_center/redirect_rules', (pagination_1.CursorPage), {
|
|
200
203
|
query,
|
|
201
204
|
...options,
|
|
202
205
|
headers: (0, headers_1.buildHeaders)([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redirect-rules.js","sourceRoot":"","sources":["../../src/resources/help-center/redirect-rules.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;IACH,MAAM,CAAC,MAAgC,EAAE,OAAwB;QAC/D,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE;YACzD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAA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AE,EACxD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kCAAkC,EAAE,EAAE,EAAE;YACrE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,aAAa,CAAC,MAAuC,EAAE,OAAwB;QAC7E,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,EAAE;YAC/D,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA9SD,sCA8SC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { CursorPage } from "../../core/pagination.mjs";
|
|
3
4
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
5
|
import { path } from "../../internal/utils/path.mjs";
|
|
5
6
|
/**
|
|
@@ -187,13 +188,15 @@ export class RedirectRules extends APIResource {
|
|
|
187
188
|
*
|
|
188
189
|
* @example
|
|
189
190
|
* ```ts
|
|
190
|
-
*
|
|
191
|
-
*
|
|
191
|
+
* // Automatically fetches more pages as needed.
|
|
192
|
+
* for await (const redirectRule of client.helpCenter.redirectRules.list()) {
|
|
193
|
+
* // ...
|
|
194
|
+
* }
|
|
192
195
|
* ```
|
|
193
196
|
*/
|
|
194
197
|
list(params = {}, options) {
|
|
195
198
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
196
|
-
return this._client.
|
|
199
|
+
return this._client.getAPIList('/v2/help_center/redirect_rules', (CursorPage), {
|
|
197
200
|
query,
|
|
198
201
|
...options,
|
|
199
202
|
headers: buildHeaders([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redirect-rules.mjs","sourceRoot":"","sources":["../../src/resources/help-center/redirect-rules.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;IACH,MAAM,CAAC,MAAgC,EAAE,OAAwB;QAC/D,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE;YACzD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC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,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,aAAa,CAAC,MAAuC,EAAE,OAAwB;QAC7E,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,EAAE;YAC/D,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { Changelogs, type Changelog, type PublishUnpublishSuccess, type
|
|
1
|
+
export { Changelogs, type Changelog, type PublishUnpublishSuccess, type ChangelogDeleteResponse, type ChangelogCreateParams, type ChangelogRetrieveParams, type ChangelogUpdateParams, type ChangelogListParams, type ChangelogDeleteParams, type ChangelogPublishParams, type ChangelogUnpublishParams, type ChangelogsCursorPage, } from "./changelogs/changelogs.mjs";
|
|
2
2
|
export { Feedback } from "./feedback/feedback.mjs";
|
|
3
3
|
export { HelpCenter } from "./help-center/help-center.mjs";
|
|
4
4
|
export { Organization } from "./organization/organization.mjs";
|
|
5
5
|
export { Support } from "./support/support.mjs";
|
|
6
|
-
export { Surveys, type Survey, type SurveyNextAction, type
|
|
6
|
+
export { Surveys, type Survey, type SurveyNextAction, type SurveyListResponsesResponse, type SurveyRetrieveParams, type SurveyListParams, type SurveyListResponsesParams, type SurveysCursorPage, type SurveyListResponsesResponsesCursorPage, } from "./surveys.mjs";
|
|
7
7
|
export { Users } from "./users/users.mjs";
|
|
8
|
-
export { Webhooks, type Webhook, type WebhookRequestConfigInput, type
|
|
8
|
+
export { Webhooks, type Webhook, type WebhookRequestConfigInput, type WebhookDeleteResponse, type WebhookCreateParams, type WebhookRetrieveParams, type WebhookUpdateParams, type WebhookListParams, type WebhookDeleteParams, type WebhookRefreshSecretParams, type WebhooksCursorPage, } from "./webhooks.mjs";
|
|
9
9
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,uBAAuB,EAC5B,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,GAC1B;OACM,EAAE,QAAQ,EAAE;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE;OAChB,EAAE,OAAO,EAAE;OACX,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,sCAAsC,GAC5C;OACM,EAAE,KAAK,EAAE;OACT,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,GACxB"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { Changelogs, type Changelog, type PublishUnpublishSuccess, type
|
|
1
|
+
export { Changelogs, type Changelog, type PublishUnpublishSuccess, type ChangelogDeleteResponse, type ChangelogCreateParams, type ChangelogRetrieveParams, type ChangelogUpdateParams, type ChangelogListParams, type ChangelogDeleteParams, type ChangelogPublishParams, type ChangelogUnpublishParams, type ChangelogsCursorPage, } from "./changelogs/changelogs.js";
|
|
2
2
|
export { Feedback } from "./feedback/feedback.js";
|
|
3
3
|
export { HelpCenter } from "./help-center/help-center.js";
|
|
4
4
|
export { Organization } from "./organization/organization.js";
|
|
5
5
|
export { Support } from "./support/support.js";
|
|
6
|
-
export { Surveys, type Survey, type SurveyNextAction, type
|
|
6
|
+
export { Surveys, type Survey, type SurveyNextAction, type SurveyListResponsesResponse, type SurveyRetrieveParams, type SurveyListParams, type SurveyListResponsesParams, type SurveysCursorPage, type SurveyListResponsesResponsesCursorPage, } from "./surveys.js";
|
|
7
7
|
export { Users } from "./users/users.js";
|
|
8
|
-
export { Webhooks, type Webhook, type WebhookRequestConfigInput, type
|
|
8
|
+
export { Webhooks, type Webhook, type WebhookRequestConfigInput, type WebhookDeleteResponse, type WebhookCreateParams, type WebhookRetrieveParams, type WebhookUpdateParams, type WebhookListParams, type WebhookDeleteParams, type WebhookRefreshSecretParams, type WebhooksCursorPage, } from "./webhooks.js";
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,uBAAuB,EAC5B,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,GAC1B;OACM,EAAE,QAAQ,EAAE;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE;OAChB,EAAE,OAAO,EAAE;OACX,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,sCAAsC,GAC5C;OACM,EAAE,KAAK,EAAE;OACT,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,GACxB"}
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,yDAaiC;AAZ/B,wGAAA,UAAU,OAAA;AAaZ,mDAA+C;AAAtC,oGAAA,QAAQ,OAAA;AACjB,4DAAuD;AAA9C,yGAAA,UAAU,OAAA;AACnB,+DAA2D;AAAlD,4GAAA,YAAY,OAAA;AACrB,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,yDAaiC;AAZ/B,wGAAA,UAAU,OAAA;AAaZ,mDAA+C;AAAtC,oGAAA,QAAQ,OAAA;AACjB,4DAAuD;AAA9C,yGAAA,UAAU,OAAA;AACnB,+DAA2D;AAAlD,4GAAA,YAAY,OAAA;AACrB,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,wCAUmB;AATjB,kGAAA,OAAO,OAAA;AAUT,0CAAsC;AAA7B,8FAAA,KAAK,OAAA;AACd,0CAYoB;AAXlB,oGAAA,QAAQ,OAAA"}
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,UAAU,GAYX;OACM,EAAE,QAAQ,EAAE;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE;OAChB,EAAE,OAAO,EAAE;OACX,EACL,OAAO,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,UAAU,GAYX;OACM,EAAE,QAAQ,EAAE;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE;OAChB,EAAE,OAAO,EAAE;OACX,EACL,OAAO,GASR;OACM,EAAE,KAAK,EAAE;OACT,EACL,QAAQ,GAWT"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.mjs";
|
|
3
4
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
5
|
/**
|
|
5
6
|
* Brands represent distinct brand identities within your organization. Each brand can have its own help center and email sending address. Use this endpoint to list and retrieve brand information.
|
|
@@ -101,8 +102,9 @@ export declare class Brands extends APIResource {
|
|
|
101
102
|
*
|
|
102
103
|
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
103
104
|
*/
|
|
104
|
-
list(params?: BrandListParams | null | undefined, options?: RequestOptions):
|
|
105
|
+
list(params?: BrandListParams | null | undefined, options?: RequestOptions): PagePromise<BrandsCursorPage, Brand>;
|
|
105
106
|
}
|
|
107
|
+
export type BrandsCursorPage = CursorPage<Brand>;
|
|
106
108
|
export interface Brand {
|
|
107
109
|
/**
|
|
108
110
|
* Featurebase internal ID
|
|
@@ -137,20 +139,6 @@ export interface Brand {
|
|
|
137
139
|
*/
|
|
138
140
|
updatedAt: string | null;
|
|
139
141
|
}
|
|
140
|
-
export interface BrandListResponse {
|
|
141
|
-
/**
|
|
142
|
-
* Array of brands
|
|
143
|
-
*/
|
|
144
|
-
data: Array<Brand>;
|
|
145
|
-
/**
|
|
146
|
-
* Cursor for fetching the next page (cursor-based pagination)
|
|
147
|
-
*/
|
|
148
|
-
nextCursor: string | null;
|
|
149
|
-
/**
|
|
150
|
-
* Object type identifier
|
|
151
|
-
*/
|
|
152
|
-
object: 'list';
|
|
153
|
-
}
|
|
154
142
|
export interface BrandRetrieveParams {
|
|
155
143
|
/**
|
|
156
144
|
* API version for this request. Defaults to your organization's configured API
|
|
@@ -158,16 +146,7 @@ export interface BrandRetrieveParams {
|
|
|
158
146
|
*/
|
|
159
147
|
'Featurebase-Version'?: string;
|
|
160
148
|
}
|
|
161
|
-
export interface BrandListParams {
|
|
162
|
-
/**
|
|
163
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
164
|
-
* previous response to fetch the next page of results.
|
|
165
|
-
*/
|
|
166
|
-
cursor?: string;
|
|
167
|
-
/**
|
|
168
|
-
* Query param: A limit on the number of brands to be returned, between 1 and 100.
|
|
169
|
-
*/
|
|
170
|
-
limit?: number;
|
|
149
|
+
export interface BrandListParams extends CursorPageParams {
|
|
171
150
|
/**
|
|
172
151
|
* Header param: API version for this request. Defaults to your organization's
|
|
173
152
|
* configured API version if not specified.
|
|
@@ -175,6 +154,6 @@ export interface BrandListParams {
|
|
|
175
154
|
'Featurebase-Version'?: string;
|
|
176
155
|
}
|
|
177
156
|
export declare namespace Brands {
|
|
178
|
-
export { type Brand as Brand, type
|
|
157
|
+
export { type Brand as Brand, type BrandsCursorPage as BrandsCursorPage, type BrandRetrieveParams as BrandRetrieveParams, type BrandListParams as BrandListParams, };
|
|
179
158
|
}
|
|
180
159
|
//# sourceMappingURL=brands.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.d.mts","sourceRoot":"","sources":["../../src/resources/organization/brands.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"brands.d.mts","sourceRoot":"","sources":["../../src/resources/organization/brands.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,KAAK,CAAC;IAWpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoDG;IACH,IAAI,CACF,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gBAAgB,EAAE,KAAK,CAAC;CAWxC;AAED,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;AAEjD,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.js";
|
|
3
4
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
5
|
/**
|
|
5
6
|
* Brands represent distinct brand identities within your organization. Each brand can have its own help center and email sending address. Use this endpoint to list and retrieve brand information.
|
|
@@ -101,8 +102,9 @@ export declare class Brands extends APIResource {
|
|
|
101
102
|
*
|
|
102
103
|
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
103
104
|
*/
|
|
104
|
-
list(params?: BrandListParams | null | undefined, options?: RequestOptions):
|
|
105
|
+
list(params?: BrandListParams | null | undefined, options?: RequestOptions): PagePromise<BrandsCursorPage, Brand>;
|
|
105
106
|
}
|
|
107
|
+
export type BrandsCursorPage = CursorPage<Brand>;
|
|
106
108
|
export interface Brand {
|
|
107
109
|
/**
|
|
108
110
|
* Featurebase internal ID
|
|
@@ -137,20 +139,6 @@ export interface Brand {
|
|
|
137
139
|
*/
|
|
138
140
|
updatedAt: string | null;
|
|
139
141
|
}
|
|
140
|
-
export interface BrandListResponse {
|
|
141
|
-
/**
|
|
142
|
-
* Array of brands
|
|
143
|
-
*/
|
|
144
|
-
data: Array<Brand>;
|
|
145
|
-
/**
|
|
146
|
-
* Cursor for fetching the next page (cursor-based pagination)
|
|
147
|
-
*/
|
|
148
|
-
nextCursor: string | null;
|
|
149
|
-
/**
|
|
150
|
-
* Object type identifier
|
|
151
|
-
*/
|
|
152
|
-
object: 'list';
|
|
153
|
-
}
|
|
154
142
|
export interface BrandRetrieveParams {
|
|
155
143
|
/**
|
|
156
144
|
* API version for this request. Defaults to your organization's configured API
|
|
@@ -158,16 +146,7 @@ export interface BrandRetrieveParams {
|
|
|
158
146
|
*/
|
|
159
147
|
'Featurebase-Version'?: string;
|
|
160
148
|
}
|
|
161
|
-
export interface BrandListParams {
|
|
162
|
-
/**
|
|
163
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
164
|
-
* previous response to fetch the next page of results.
|
|
165
|
-
*/
|
|
166
|
-
cursor?: string;
|
|
167
|
-
/**
|
|
168
|
-
* Query param: A limit on the number of brands to be returned, between 1 and 100.
|
|
169
|
-
*/
|
|
170
|
-
limit?: number;
|
|
149
|
+
export interface BrandListParams extends CursorPageParams {
|
|
171
150
|
/**
|
|
172
151
|
* Header param: API version for this request. Defaults to your organization's
|
|
173
152
|
* configured API version if not specified.
|
|
@@ -175,6 +154,6 @@ export interface BrandListParams {
|
|
|
175
154
|
'Featurebase-Version'?: string;
|
|
176
155
|
}
|
|
177
156
|
export declare namespace Brands {
|
|
178
|
-
export { type Brand as Brand, type
|
|
157
|
+
export { type Brand as Brand, type BrandsCursorPage as BrandsCursorPage, type BrandRetrieveParams as BrandRetrieveParams, type BrandListParams as BrandListParams, };
|
|
179
158
|
}
|
|
180
159
|
//# sourceMappingURL=brands.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.d.ts","sourceRoot":"","sources":["../../src/resources/organization/brands.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"brands.d.ts","sourceRoot":"","sources":["../../src/resources/organization/brands.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,KAAK,CAAC;IAWpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoDG;IACH,IAAI,CACF,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gBAAgB,EAAE,KAAK,CAAC;CAWxC;AAED,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;AAEjD,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Brands = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
6
7
|
const headers_1 = require("../../internal/headers.js");
|
|
7
8
|
const path_1 = require("../../internal/utils/path.js");
|
|
8
9
|
/**
|
|
@@ -116,7 +117,7 @@ class Brands extends resource_1.APIResource {
|
|
|
116
117
|
*/
|
|
117
118
|
list(params = {}, options) {
|
|
118
119
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
119
|
-
return this._client.
|
|
120
|
+
return this._client.getAPIList('/v2/brands', (pagination_1.CursorPage), {
|
|
120
121
|
query,
|
|
121
122
|
...options,
|
|
122
123
|
headers: (0, headers_1.buildHeaders)([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.js","sourceRoot":"","sources":["../../src/resources/organization/brands.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;IACH,QAAQ,CACN,EAAU,EACV,SAAiD,EAAE,EACnD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,EAAE,EAAE,EAAE;YAC9C,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoDG;IACH,IAAI,CACF,SAA6C,EAAE,EAC/C,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"brands.js","sourceRoot":"","sources":["../../src/resources/organization/brands.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAAuF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|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { CursorPage } from "../../core/pagination.mjs";
|
|
3
4
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
5
|
import { path } from "../../internal/utils/path.mjs";
|
|
5
6
|
/**
|
|
@@ -113,7 +114,7 @@ export class Brands extends APIResource {
|
|
|
113
114
|
*/
|
|
114
115
|
list(params = {}, options) {
|
|
115
116
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
116
|
-
return this._client.
|
|
117
|
+
return this._client.getAPIList('/v2/brands', (CursorPage), {
|
|
117
118
|
query,
|
|
118
119
|
...options,
|
|
119
120
|
headers: buildHeaders([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.mjs","sourceRoot":"","sources":["../../src/resources/organization/brands.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;IACH,QAAQ,CACN,EAAU,EACV,SAAiD,EAAE,EACnD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,EAAE,EAAE,EAAE;YAC9C,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAA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M,IAAI,EAAE,CAAC;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,CAAA,UAAiB,CAAA,EAAE;YAC9D,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Admins, type Admin, type AdminListResponse, type AdminListRolesResponse, type AdminRetrieveParams, type AdminListParams, type AdminListRolesParams, } from "./admins.mjs";
|
|
2
|
-
export { Brands, type Brand, type
|
|
2
|
+
export { Brands, type Brand, type BrandRetrieveParams, type BrandListParams, type BrandsCursorPage, } from "./brands.mjs";
|
|
3
3
|
export { Organization } from "./organization.mjs";
|
|
4
4
|
export { Teams, type Team, type TeamListResponse, type TeamRetrieveParams, type TeamListParams, } from "./teams.mjs";
|
|
5
5
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,oBAAoB,GAC1B;OACM,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,oBAAoB,GAC1B;OACM,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB;OACM,EAAE,YAAY,EAAE;OAChB,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Admins, type Admin, type AdminListResponse, type AdminListRolesResponse, type AdminRetrieveParams, type AdminListParams, type AdminListRolesParams, } from "./admins.js";
|
|
2
|
-
export { Brands, type Brand, type
|
|
2
|
+
export { Brands, type Brand, type BrandRetrieveParams, type BrandListParams, type BrandsCursorPage, } from "./brands.js";
|
|
3
3
|
export { Organization } from "./organization.js";
|
|
4
4
|
export { Teams, type Team, type TeamListResponse, type TeamRetrieveParams, type TeamListParams, } from "./teams.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,oBAAoB,GAC1B;OACM,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,oBAAoB,GAC1B;OACM,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB;OACM,EAAE,YAAY,EAAE;OAChB,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB"}
|
|
@@ -2,7 +2,7 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
2
2
|
import * as AdminsAPI from "./admins.mjs";
|
|
3
3
|
import { Admin, AdminListParams, AdminListResponse, AdminListRolesParams, AdminListRolesResponse, AdminRetrieveParams, Admins } from "./admins.mjs";
|
|
4
4
|
import * as BrandsAPI from "./brands.mjs";
|
|
5
|
-
import { Brand, BrandListParams,
|
|
5
|
+
import { Brand, BrandListParams, BrandRetrieveParams, Brands, BrandsCursorPage } from "./brands.mjs";
|
|
6
6
|
import * as TeamsAPI from "./teams.mjs";
|
|
7
7
|
import { Team, TeamListParams, TeamListResponse, TeamRetrieveParams, Teams } from "./teams.mjs";
|
|
8
8
|
export declare class Organization extends APIResource {
|
|
@@ -13,6 +13,6 @@ export declare class Organization extends APIResource {
|
|
|
13
13
|
export declare namespace Organization {
|
|
14
14
|
export { Admins as Admins, type Admin as Admin, type AdminListResponse as AdminListResponse, type AdminListRolesResponse as AdminListRolesResponse, type AdminRetrieveParams as AdminRetrieveParams, type AdminListParams as AdminListParams, type AdminListRolesParams as AdminListRolesParams, };
|
|
15
15
|
export { Teams as Teams, type Team as Team, type TeamListResponse as TeamListResponse, type TeamRetrieveParams as TeamRetrieveParams, type TeamListParams as TeamListParams, };
|
|
16
|
-
export { Brands as Brands, type Brand as Brand, type
|
|
16
|
+
export { Brands as Brands, type Brand as Brand, type BrandsCursorPage as BrandsCursorPage, type BrandRetrieveParams as BrandRetrieveParams, type BrandListParams as BrandListParams, };
|
|
17
17
|
}
|
|
18
18
|
//# sourceMappingURL=organization.d.mts.map
|