@izak0s/spacebring-api 3.2.0 → 3.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/README.md +1 -1
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +227 -7
- package/dist/index.d.ts +227 -7
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1959,6 +1959,26 @@ interface paths {
|
|
|
1959
1959
|
patch?: never;
|
|
1960
1960
|
trace?: never;
|
|
1961
1961
|
};
|
|
1962
|
+
"/resources/v1/assignments": {
|
|
1963
|
+
parameters: {
|
|
1964
|
+
query?: never;
|
|
1965
|
+
header?: never;
|
|
1966
|
+
path?: never;
|
|
1967
|
+
cookie?: never;
|
|
1968
|
+
};
|
|
1969
|
+
/**
|
|
1970
|
+
* Retrieve resource assignments
|
|
1971
|
+
* @description Retrieve resource assignments in the location. An assignment links a resource, or a number of seats in it, to a company or a member for the duration of a subscription. <h3>OAuth</h3>Required scopes: <code>resources.readonly</code> or <code>resources</code>
|
|
1972
|
+
*/
|
|
1973
|
+
get: operations["getAssignments"];
|
|
1974
|
+
put?: never;
|
|
1975
|
+
post?: never;
|
|
1976
|
+
delete?: never;
|
|
1977
|
+
options?: never;
|
|
1978
|
+
head?: never;
|
|
1979
|
+
patch?: never;
|
|
1980
|
+
trace?: never;
|
|
1981
|
+
};
|
|
1962
1982
|
"/resources/v1/{id}": {
|
|
1963
1983
|
parameters: {
|
|
1964
1984
|
query?: never;
|
|
@@ -8395,6 +8415,11 @@ interface components {
|
|
|
8395
8415
|
};
|
|
8396
8416
|
/** @description Assigned quantity when the resource is partially assigned. */
|
|
8397
8417
|
quantity?: number;
|
|
8418
|
+
/**
|
|
8419
|
+
* Format: uuid
|
|
8420
|
+
* @description UUID of the resource the assignment belongs to.
|
|
8421
|
+
*/
|
|
8422
|
+
resourceRef: string;
|
|
8398
8423
|
/** @description Subscription backing this assignment. */
|
|
8399
8424
|
subscription: {
|
|
8400
8425
|
/** @description ISO timestamp when the assignment ends. */
|
|
@@ -8885,6 +8910,69 @@ interface components {
|
|
|
8885
8910
|
*/
|
|
8886
8911
|
visibility: "admins" | "exclusiveMembers" | "members" | "networkMembers" | "public";
|
|
8887
8912
|
};
|
|
8913
|
+
getAssignments: {
|
|
8914
|
+
/** @description List of resource assignments in the location. */
|
|
8915
|
+
assignments: {
|
|
8916
|
+
/** @description Company assigned to the resource. */
|
|
8917
|
+
company?: {
|
|
8918
|
+
/**
|
|
8919
|
+
* Format: uuid
|
|
8920
|
+
* @description Company id.
|
|
8921
|
+
*/
|
|
8922
|
+
id: string;
|
|
8923
|
+
/** @description Company name. */
|
|
8924
|
+
title: string;
|
|
8925
|
+
};
|
|
8926
|
+
/** @description Whether the assignment grants access to the entire resource. */
|
|
8927
|
+
entire: boolean;
|
|
8928
|
+
/**
|
|
8929
|
+
* Format: uuid
|
|
8930
|
+
* @description Assignment id.
|
|
8931
|
+
*/
|
|
8932
|
+
id?: string;
|
|
8933
|
+
/** @description Membership linked to the assignment. */
|
|
8934
|
+
membership?: {
|
|
8935
|
+
/**
|
|
8936
|
+
* Format: uuid
|
|
8937
|
+
* @description Membership id.
|
|
8938
|
+
*/
|
|
8939
|
+
id: string;
|
|
8940
|
+
};
|
|
8941
|
+
/** @description Assigned quantity when the resource is partially assigned. */
|
|
8942
|
+
quantity?: number;
|
|
8943
|
+
/**
|
|
8944
|
+
* Format: uuid
|
|
8945
|
+
* @description UUID of the resource the assignment belongs to.
|
|
8946
|
+
*/
|
|
8947
|
+
resourceRef: string;
|
|
8948
|
+
/** @description Subscription backing this assignment. */
|
|
8949
|
+
subscription: {
|
|
8950
|
+
/** @description ISO timestamp when the assignment ends. */
|
|
8951
|
+
endDate?: string;
|
|
8952
|
+
/**
|
|
8953
|
+
* Format: uuid
|
|
8954
|
+
* @description Subscription id.
|
|
8955
|
+
*/
|
|
8956
|
+
id: string;
|
|
8957
|
+
/** @description ISO timestamp when the assignment starts. */
|
|
8958
|
+
startDate: string;
|
|
8959
|
+
};
|
|
8960
|
+
/** @description User assigned to the resource. */
|
|
8961
|
+
user?: {
|
|
8962
|
+
/** @description User email. */
|
|
8963
|
+
email?: string | null;
|
|
8964
|
+
/**
|
|
8965
|
+
* Format: uuid
|
|
8966
|
+
* @description User id.
|
|
8967
|
+
*/
|
|
8968
|
+
id: string;
|
|
8969
|
+
/** @description User first name. */
|
|
8970
|
+
name?: string | null;
|
|
8971
|
+
/** @description User last name. */
|
|
8972
|
+
surname?: string | null;
|
|
8973
|
+
};
|
|
8974
|
+
}[];
|
|
8975
|
+
};
|
|
8888
8976
|
payment: {
|
|
8889
8977
|
/** @description The amount of the payment */
|
|
8890
8978
|
amount?: number;
|
|
@@ -11934,7 +12022,10 @@ interface components {
|
|
|
11934
12022
|
* @description ID of the location.
|
|
11935
12023
|
*/
|
|
11936
12024
|
locationRef: string;
|
|
11937
|
-
/**
|
|
12025
|
+
/**
|
|
12026
|
+
* @deprecated
|
|
12027
|
+
* @description Assignee membership details. Deprecated, use userAssignee instead.
|
|
12028
|
+
*/
|
|
11938
12029
|
membershipAssignee?: {
|
|
11939
12030
|
/**
|
|
11940
12031
|
* Format: uuid
|
|
@@ -11968,7 +12059,8 @@ interface components {
|
|
|
11968
12059
|
};
|
|
11969
12060
|
/**
|
|
11970
12061
|
* Format: uuid
|
|
11971
|
-
* @
|
|
12062
|
+
* @deprecated
|
|
12063
|
+
* @description ID of the assignee membership. Deprecated, use userRefAssignee instead.
|
|
11972
12064
|
*/
|
|
11973
12065
|
membershipRefAssignee?: string;
|
|
11974
12066
|
/**
|
|
@@ -12050,6 +12142,11 @@ interface components {
|
|
|
12050
12142
|
/** @description Surname of the user. */
|
|
12051
12143
|
surname?: string | null;
|
|
12052
12144
|
} | null;
|
|
12145
|
+
/**
|
|
12146
|
+
* Format: uuid
|
|
12147
|
+
* @description ID of the assignee user.
|
|
12148
|
+
*/
|
|
12149
|
+
userRefAssignee?: string;
|
|
12053
12150
|
/** @description Requester user details. */
|
|
12054
12151
|
userRequester?: {
|
|
12055
12152
|
/** @description Whether the user is blocked. */
|
|
@@ -12096,7 +12193,10 @@ interface components {
|
|
|
12096
12193
|
/** @description Image width in pixels. */
|
|
12097
12194
|
width?: number;
|
|
12098
12195
|
}[];
|
|
12099
|
-
/**
|
|
12196
|
+
/**
|
|
12197
|
+
* @deprecated
|
|
12198
|
+
* @description Assignee after the update. Deprecated, use userAssignee instead.
|
|
12199
|
+
*/
|
|
12100
12200
|
membershipAssignee?: {
|
|
12101
12201
|
/**
|
|
12102
12202
|
* Format: uuid
|
|
@@ -12130,7 +12230,10 @@ interface components {
|
|
|
12130
12230
|
};
|
|
12131
12231
|
/** @description Previous attribute values before the update. */
|
|
12132
12232
|
previousAttributes?: {
|
|
12133
|
-
/**
|
|
12233
|
+
/**
|
|
12234
|
+
* @deprecated
|
|
12235
|
+
* @description Assignee before the update. Deprecated, use userAssignee instead.
|
|
12236
|
+
*/
|
|
12134
12237
|
membershipAssignee?: {
|
|
12135
12238
|
/**
|
|
12136
12239
|
* Format: uuid
|
|
@@ -12167,6 +12270,31 @@ interface components {
|
|
|
12167
12270
|
* @enum {string}
|
|
12168
12271
|
*/
|
|
12169
12272
|
status?: "closed" | "inProgress" | "new" | "solved";
|
|
12273
|
+
/** @description Assignee user before the update. */
|
|
12274
|
+
userAssignee?: {
|
|
12275
|
+
/** @description Whether the user is blocked. */
|
|
12276
|
+
blocked?: boolean;
|
|
12277
|
+
/** @description Email address when visible to the caller. */
|
|
12278
|
+
email?: string;
|
|
12279
|
+
/**
|
|
12280
|
+
* Format: uuid
|
|
12281
|
+
* @description Unique identifier of the user.
|
|
12282
|
+
*/
|
|
12283
|
+
id: string;
|
|
12284
|
+
/** @description First name of the user. */
|
|
12285
|
+
name?: string | null;
|
|
12286
|
+
/** @description Phone number when visible to the caller. */
|
|
12287
|
+
phoneNumber?: string;
|
|
12288
|
+
/** @description Profile photo URL. */
|
|
12289
|
+
photoUrl: string | null;
|
|
12290
|
+
/** @description Surname of the user. */
|
|
12291
|
+
surname?: string | null;
|
|
12292
|
+
};
|
|
12293
|
+
/**
|
|
12294
|
+
* Format: uuid
|
|
12295
|
+
* @description ID of the assignee user before the update.
|
|
12296
|
+
*/
|
|
12297
|
+
userRefAssignee?: string;
|
|
12170
12298
|
};
|
|
12171
12299
|
/**
|
|
12172
12300
|
* @description Status after the update.
|
|
@@ -12175,6 +12303,31 @@ interface components {
|
|
|
12175
12303
|
status?: "closed" | "inProgress" | "new" | "solved";
|
|
12176
12304
|
/** @description Comment text. */
|
|
12177
12305
|
text?: string;
|
|
12306
|
+
/** @description Assignee user after the update. */
|
|
12307
|
+
userAssignee?: {
|
|
12308
|
+
/** @description Whether the user is blocked. */
|
|
12309
|
+
blocked?: boolean;
|
|
12310
|
+
/** @description Email address when visible to the caller. */
|
|
12311
|
+
email?: string;
|
|
12312
|
+
/**
|
|
12313
|
+
* Format: uuid
|
|
12314
|
+
* @description Unique identifier of the user.
|
|
12315
|
+
*/
|
|
12316
|
+
id: string;
|
|
12317
|
+
/** @description First name of the user. */
|
|
12318
|
+
name?: string | null;
|
|
12319
|
+
/** @description Phone number when visible to the caller. */
|
|
12320
|
+
phoneNumber?: string;
|
|
12321
|
+
/** @description Profile photo URL. */
|
|
12322
|
+
photoUrl: string | null;
|
|
12323
|
+
/** @description Surname of the user. */
|
|
12324
|
+
surname?: string | null;
|
|
12325
|
+
};
|
|
12326
|
+
/**
|
|
12327
|
+
* Format: uuid
|
|
12328
|
+
* @description ID of the assignee user after the update.
|
|
12329
|
+
*/
|
|
12330
|
+
userRefAssignee?: string;
|
|
12178
12331
|
};
|
|
12179
12332
|
/**
|
|
12180
12333
|
* Format: uuid
|
|
@@ -17144,9 +17297,15 @@ interface components {
|
|
|
17144
17297
|
ticket: {
|
|
17145
17298
|
/**
|
|
17146
17299
|
* Format: uuid
|
|
17147
|
-
* @
|
|
17300
|
+
* @deprecated
|
|
17301
|
+
* @description ID of the membership to assign the ticket to, or null to unassign. Deprecated, use userRefAssignee instead.
|
|
17302
|
+
*/
|
|
17303
|
+
membershipRefAssignee?: string | null;
|
|
17304
|
+
/**
|
|
17305
|
+
* Format: uuid
|
|
17306
|
+
* @description ID of the user to assign the ticket to, or null to unassign.
|
|
17148
17307
|
*/
|
|
17149
|
-
|
|
17308
|
+
userRefAssignee?: string | null;
|
|
17150
17309
|
};
|
|
17151
17310
|
};
|
|
17152
17311
|
};
|
|
@@ -22189,6 +22348,59 @@ interface operations {
|
|
|
22189
22348
|
};
|
|
22190
22349
|
};
|
|
22191
22350
|
};
|
|
22351
|
+
getAssignments: {
|
|
22352
|
+
parameters: {
|
|
22353
|
+
query: {
|
|
22354
|
+
/** @description UUID of the location whose resource assignments to list. */
|
|
22355
|
+
locationRef: string;
|
|
22356
|
+
};
|
|
22357
|
+
header?: {
|
|
22358
|
+
/** @description The id of the network. Required when using bearer token authentication */
|
|
22359
|
+
"spacebring-network-id"?: string;
|
|
22360
|
+
};
|
|
22361
|
+
path?: never;
|
|
22362
|
+
cookie?: never;
|
|
22363
|
+
};
|
|
22364
|
+
requestBody?: never;
|
|
22365
|
+
responses: {
|
|
22366
|
+
/** @description OK */
|
|
22367
|
+
200: {
|
|
22368
|
+
headers: {
|
|
22369
|
+
[name: string]: unknown;
|
|
22370
|
+
};
|
|
22371
|
+
content: {
|
|
22372
|
+
"application/json": components["schemas"]["getAssignments"];
|
|
22373
|
+
};
|
|
22374
|
+
};
|
|
22375
|
+
/** @description Bad Request */
|
|
22376
|
+
400: {
|
|
22377
|
+
headers: {
|
|
22378
|
+
[name: string]: unknown;
|
|
22379
|
+
};
|
|
22380
|
+
content: {
|
|
22381
|
+
"application/json": components["schemas"]["responseError"];
|
|
22382
|
+
};
|
|
22383
|
+
};
|
|
22384
|
+
/** @description Forbidden */
|
|
22385
|
+
403: {
|
|
22386
|
+
headers: {
|
|
22387
|
+
[name: string]: unknown;
|
|
22388
|
+
};
|
|
22389
|
+
content: {
|
|
22390
|
+
"application/json": components["schemas"]["responseError"];
|
|
22391
|
+
};
|
|
22392
|
+
};
|
|
22393
|
+
/** @description Not Found */
|
|
22394
|
+
404: {
|
|
22395
|
+
headers: {
|
|
22396
|
+
[name: string]: unknown;
|
|
22397
|
+
};
|
|
22398
|
+
content: {
|
|
22399
|
+
"application/json": components["schemas"]["responseError"];
|
|
22400
|
+
};
|
|
22401
|
+
};
|
|
22402
|
+
};
|
|
22403
|
+
};
|
|
22192
22404
|
getResource: {
|
|
22193
22405
|
parameters: {
|
|
22194
22406
|
query?: never;
|
|
@@ -24792,10 +25004,17 @@ type UpdateProductBody = NonNullable<NonNullable<operations["updateProduct"]["re
|
|
|
24792
25004
|
/** Request body for `sb.shop.categories.update()`. */
|
|
24793
25005
|
type UpdateShopCategoryBody = NonNullable<NonNullable<operations["updateShopCategory"]["requestBody"]>["content"]["application/json"]["category"]>;
|
|
24794
25006
|
|
|
25007
|
+
/** A Assignment entity as returned by the Spacebring API. */
|
|
25008
|
+
type Assignment = NonNullable<operations["getAssignments"]["responses"][200]["content"]["application/json"]["assignments"]>[number];
|
|
24795
25009
|
/** A Booking entity as returned by the Spacebring API. */
|
|
24796
25010
|
type Booking = NonNullable<components["schemas"]["booking"]>;
|
|
24797
25011
|
/** A Resource entity as returned by the Spacebring API. */
|
|
24798
25012
|
type Resource = NonNullable<components["schemas"]["resource"]>;
|
|
25013
|
+
/** Query parameters for `sb.resources.getAssignments()`. */
|
|
25014
|
+
interface GetAssignmentsQuery {
|
|
25015
|
+
/** UUID of the location whose resource assignments to list. */
|
|
25016
|
+
locationRef: string;
|
|
25017
|
+
}
|
|
24799
25018
|
/** Query parameters for `sb.resources.bookings.list()`. */
|
|
24800
25019
|
interface GetBookingsQuery {
|
|
24801
25020
|
/** The id of the resource. Required if `locationRef` is not passed. */
|
|
@@ -25620,6 +25839,7 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
25620
25839
|
get(id: string, options?: SpacebringRequestOptions): Promise<Resource>;
|
|
25621
25840
|
create(resource: CreateResourceBody, options?: SpacebringRequestOptions): Promise<Resource>;
|
|
25622
25841
|
update(id: string, resource: PatchResourceBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
25842
|
+
getAssignments(query: GetAssignmentsQuery, options?: SpacebringRequestOptions): Promise<Assignment[]>;
|
|
25623
25843
|
bookings: {
|
|
25624
25844
|
list(query?: GetBookingsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
25625
25845
|
bookings?: Booking[];
|
|
@@ -25845,4 +26065,4 @@ declare class SpacebringError extends Error {
|
|
|
25845
26065
|
});
|
|
25846
26066
|
}
|
|
25847
26067
|
|
|
25848
|
-
export { type Activity, type AddEventHostsBody, type AltCurrency, type Application, type ApplyBenefitBody, type Balance, type Benefit, type BenefitCategory, type Booking, type CheckInVisitBody, type CheckOutVisitBody, type Comment, type Company, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBookingBody, type CreateCompanyBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateGuideBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreatePackageBody, type CreatePlanBody, type CreateProductBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateTemplateBody, type CreateVisitBody, type CreditNote, type CreditTransaction, type DayPassTransaction, type Event, type EventTicket, type GetAltCurrenciesQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCompaniesQuery, type GetContactsQuery, type GetContractsQuery, type GetCouponsQuery, type GetCreditNotesQuery, type GetCreditsTransactionsQuery, type GetDayPassesTransactionsQuery, type GetDiscountRedemptionsQuery, type GetEventTicketsQuery, type GetEventsByOrganizationQuery, type GetFeedPostsQuery, type GetFloorsQuery, type GetGuidesQuery, type GetInvoicesQuery, type GetMembershipsDeletedQuery, type GetMembershipsQuery, type GetMoneyTransactionsQuery, type GetOrdersQuery, type GetPackagesQuery, type GetPlansQuery, type GetProductsQuery, type GetPromocodesQuery, type GetRegistrationsQuery, type GetRequestsQuery, type GetResourcesQuery, type GetScheduledDayPassesTransactionsQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetTemplatesQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, type Invoice, type InvoiceItem, type IssueContractBody, type IssueInvoiceBody, type Like, type ListInvoiceItemsQuery, type Location, type Membership, type MoneyTransaction, type Network, type Order, type Package, type PatchGuideBody, type PatchPackageBody, type PatchResourceBody, type PayInvoiceBody, type Payment, type Plan, type Post, type PreviewCreditNoteBody, type Product, type Promocode, type Redemption, type Registration, type Request$1 as Request, type Resource, type ScheduledTransaction, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type Template, type TerminateContractBody, type UpcomingItem, type UpdateAltCurrencyBody, type UpdateBenefitBody, type UpdateBenefitCategoryBody, type UpdateCompanyBody, type UpdateContractBody, type UpdateCouponBody, type UpdateCreditNoteBody, type UpdateEventBody, type UpdateEventTicketBody, type UpdateFeedPostBody, type UpdateInvoiceBody, type UpdateInvoiceItemBody, type UpdateMembershipBody, type UpdatePlanBody, type UpdateProductBody, type UpdateShopCategoryBody, type UpdateSubscriptionBody, type UpdateSubscriptionItemBody, type UpdateSupportTicketAssigneeBody, type UpdateSupportTicketStatusBody, type UpdateSupportTicketTypeBody, type UpdateTemplateBody, type UpdateVisitBody, type Visit, type components, type operations, type paths };
|
|
26068
|
+
export { type Activity, type AddEventHostsBody, type AltCurrency, type Application, type ApplyBenefitBody, type Assignment, type Balance, type Benefit, type BenefitCategory, type Booking, type CheckInVisitBody, type CheckOutVisitBody, type Comment, type Company, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBookingBody, type CreateCompanyBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateGuideBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreatePackageBody, type CreatePlanBody, type CreateProductBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateTemplateBody, type CreateVisitBody, type CreditNote, type CreditTransaction, type DayPassTransaction, type Event, type EventTicket, type GetAltCurrenciesQuery, type GetAssignmentsQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCompaniesQuery, type GetContactsQuery, type GetContractsQuery, type GetCouponsQuery, type GetCreditNotesQuery, type GetCreditsTransactionsQuery, type GetDayPassesTransactionsQuery, type GetDiscountRedemptionsQuery, type GetEventTicketsQuery, type GetEventsByOrganizationQuery, type GetFeedPostsQuery, type GetFloorsQuery, type GetGuidesQuery, type GetInvoicesQuery, type GetMembershipsDeletedQuery, type GetMembershipsQuery, type GetMoneyTransactionsQuery, type GetOrdersQuery, type GetPackagesQuery, type GetPlansQuery, type GetProductsQuery, type GetPromocodesQuery, type GetRegistrationsQuery, type GetRequestsQuery, type GetResourcesQuery, type GetScheduledDayPassesTransactionsQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetTemplatesQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, type Invoice, type InvoiceItem, type IssueContractBody, type IssueInvoiceBody, type Like, type ListInvoiceItemsQuery, type Location, type Membership, type MoneyTransaction, type Network, type Order, type Package, type PatchGuideBody, type PatchPackageBody, type PatchResourceBody, type PayInvoiceBody, type Payment, type Plan, type Post, type PreviewCreditNoteBody, type Product, type Promocode, type Redemption, type Registration, type Request$1 as Request, type Resource, type ScheduledTransaction, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type Template, type TerminateContractBody, type UpcomingItem, type UpdateAltCurrencyBody, type UpdateBenefitBody, type UpdateBenefitCategoryBody, type UpdateCompanyBody, type UpdateContractBody, type UpdateCouponBody, type UpdateCreditNoteBody, type UpdateEventBody, type UpdateEventTicketBody, type UpdateFeedPostBody, type UpdateInvoiceBody, type UpdateInvoiceItemBody, type UpdateMembershipBody, type UpdatePlanBody, type UpdateProductBody, type UpdateShopCategoryBody, type UpdateSubscriptionBody, type UpdateSubscriptionItemBody, type UpdateSupportTicketAssigneeBody, type UpdateSupportTicketStatusBody, type UpdateSupportTicketTypeBody, type UpdateTemplateBody, type UpdateVisitBody, type Visit, type components, type operations, type paths };
|
package/dist/index.js
CHANGED
|
@@ -2015,6 +2015,14 @@ function createResources(client, defaults) {
|
|
|
2015
2015
|
async update(id, resource, options) {
|
|
2016
2016
|
return unwrap(await client.PATCH("/resources/v1/{id}", { params: { path: { id } }, body: { resource }, signal: options?.signal }), "PATCH /resources/v1/{id}");
|
|
2017
2017
|
},
|
|
2018
|
+
/**
|
|
2019
|
+
* Retrieve resource assignments
|
|
2020
|
+
*
|
|
2021
|
+
* Retrieve resource assignments in the location. An assignment links a resource, or a number of seats in it, to a company or a member for the duration of a subscription.
|
|
2022
|
+
*/
|
|
2023
|
+
async getAssignments(query, options) {
|
|
2024
|
+
return unwrapProp(await client.GET("/resources/v1/assignments", { params: { query }, signal: options?.signal }), "assignments", "GET /resources/v1/assignments");
|
|
2025
|
+
},
|
|
2018
2026
|
bookings: {
|
|
2019
2027
|
/**
|
|
2020
2028
|
* Retrieve bookings
|