@itm-studio/partner-sdk 0.6.8 → 0.6.10
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 +185 -0
- package/dist/index.d.mts +617 -1
- package/dist/index.d.ts +617 -1
- package/dist/index.js +973 -147
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +973 -147
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/partner.graphql +368 -0
package/package.json
CHANGED
package/schema/partner.graphql
CHANGED
|
@@ -2004,6 +2004,11 @@ type PartnerAppLogin {
|
|
|
2004
2004
|
}
|
|
2005
2005
|
|
|
2006
2006
|
type Query {
|
|
2007
|
+
getPartnerWalletOperation(brandUid: String!, operationUid: String!, walletUid: String!): BrandWalletOperation
|
|
2008
|
+
listPartnerWalletActivity(brandUid: String!, cursor: String, take: Int, walletUid: String!): BrandWalletActivityResponse!
|
|
2009
|
+
listPartnerWalletOperations(brandUid: String!, cursor: String, excludeUnconfirmed: Boolean, kind: WalletOperationKind, statuses: [WalletOperationStatus!], take: Int, walletUid: String): BrandWalletOperationsResponse!
|
|
2010
|
+
listPartnerWallets(brandUid: String!, cursor: String, take: Int): BrandWalletsResponse!
|
|
2011
|
+
|
|
2007
2012
|
getPartnerForms(input: GetPartnerFormsInput): GetFormsPaginatedResponse!
|
|
2008
2013
|
getPartnerForm(uid: String!): Form!
|
|
2009
2014
|
getPartnerFormResponses(input: GetPartnerFormResponsesInput): GetPartnerFormResponsesResponse!
|
|
@@ -2265,6 +2270,21 @@ type Query {
|
|
|
2265
2270
|
getPartnerPlanningProposal(uid: String!): PlanningProposal!
|
|
2266
2271
|
getPartnerGuestListCheckIns(cursor: String, guestlistUid: String!, momentSlug: String!, take: Int): GetPartnerGuestListCheckInsResponse!
|
|
2267
2272
|
getPartnerGuestListForMoment(cursor: String, filters: GetMomentGuestListFiltersInput, momentSlug: String!, sort: MomentGuestListSortInput, take: Int): GetPartnerMomentGuestListResponse!
|
|
2273
|
+
|
|
2274
|
+
"""
|
|
2275
|
+
The brand's locations that have bookable spaces, with their active spaces and time zone.
|
|
2276
|
+
"""
|
|
2277
|
+
getPartnerSpaceLocations(cursor: String, take: Int): PartnerSpaceLocationsPage!
|
|
2278
|
+
|
|
2279
|
+
"""
|
|
2280
|
+
Holds, bookings, blocks and closed hours on a location's spaces over at most 62 local days.
|
|
2281
|
+
"""
|
|
2282
|
+
getPartnerSpaceCalendar(input: SpaceCalendarInput!): PartnerSpaceCalendar!
|
|
2283
|
+
|
|
2284
|
+
"""
|
|
2285
|
+
Whether each of a location's spaces is open, has holds in line, or is unavailable on each local date, for whole days or a local time window.
|
|
2286
|
+
"""
|
|
2287
|
+
getPartnerSpaceAvailability(input: SpaceAvailabilityInput!): SpaceAvailability!
|
|
2268
2288
|
}
|
|
2269
2289
|
|
|
2270
2290
|
# ─── Input Types ──────────────────────────────────────────────────────────────
|
|
@@ -2658,6 +2678,10 @@ type CreatePartnerBrandSubscriptionResponse {
|
|
|
2658
2678
|
# ─── Mutations ────────────────────────────────────────────────────────────────
|
|
2659
2679
|
|
|
2660
2680
|
type Mutation {
|
|
2681
|
+
confirmPartnerWalletOperation(brandUid: String!, operationUid: String!, walletUid: String!): BrandWalletOperation!
|
|
2682
|
+
createPartnerWalletPaymentRequest(brandUid: String!, input: CreateBrandWalletPaymentRequestInput!, walletUid: String!): BrandWalletOperation!
|
|
2683
|
+
preparePartnerWalletPayment(brandUid: String!, input: PrepareBrandWalletPaymentInput!, walletUid: String!): BrandWalletOperation!
|
|
2684
|
+
|
|
2661
2685
|
"""
|
|
2662
2686
|
Registers a Login with ITM app for the brand. A brand can have up to 20 apps.
|
|
2663
2687
|
"""
|
|
@@ -3900,3 +3924,347 @@ type GetPartnerFormResponsesResponse {
|
|
|
3900
3924
|
totalCount: Int!
|
|
3901
3925
|
}
|
|
3902
3926
|
# End partner forms and response reads
|
|
3927
|
+
|
|
3928
|
+
type BrandWallet {
|
|
3929
|
+
accessReady: Boolean!
|
|
3930
|
+
balance: BrandWalletBalance
|
|
3931
|
+
balanceStale: Boolean!
|
|
3932
|
+
capabilities: BrandWalletCapabilities!
|
|
3933
|
+
displayName: String
|
|
3934
|
+
status: String
|
|
3935
|
+
uid: String!
|
|
3936
|
+
}
|
|
3937
|
+
|
|
3938
|
+
type BrandWalletActivity {
|
|
3939
|
+
amountMinor: String!
|
|
3940
|
+
counterparty: BrandWalletCounterparty
|
|
3941
|
+
currency: String!
|
|
3942
|
+
description: String
|
|
3943
|
+
direction: String!
|
|
3944
|
+
feeMinor: String
|
|
3945
|
+
occurredAt: DateTime!
|
|
3946
|
+
operationKind: WalletOperationKind
|
|
3947
|
+
operationUid: String
|
|
3948
|
+
status: String!
|
|
3949
|
+
uid: String!
|
|
3950
|
+
}
|
|
3951
|
+
|
|
3952
|
+
type BrandWalletActivityResponse {
|
|
3953
|
+
activity: [BrandWalletActivity!]!
|
|
3954
|
+
activityStale: Boolean!
|
|
3955
|
+
hasNextPage: Boolean!
|
|
3956
|
+
ledgerCheckedAt: DateTime
|
|
3957
|
+
nextCursor: String
|
|
3958
|
+
totalCount: Int!
|
|
3959
|
+
}
|
|
3960
|
+
|
|
3961
|
+
type BrandWalletBalance {
|
|
3962
|
+
"""Spendable balance in minor units of `currency`."""
|
|
3963
|
+
availableMinor: String!
|
|
3964
|
+
currency: String!
|
|
3965
|
+
refreshedAt: DateTime!
|
|
3966
|
+
|
|
3967
|
+
"""
|
|
3968
|
+
Total ledger balance in minor units, including pending amounts and holds.
|
|
3969
|
+
"""
|
|
3970
|
+
totalMinor: String!
|
|
3971
|
+
}
|
|
3972
|
+
|
|
3973
|
+
type BrandWalletCapabilities {
|
|
3974
|
+
canRequest: Boolean!
|
|
3975
|
+
canSend: Boolean!
|
|
3976
|
+
canTransfer: Boolean!
|
|
3977
|
+
missingPermissions: [String!]!
|
|
3978
|
+
}
|
|
3979
|
+
|
|
3980
|
+
type BrandWalletCounterparty {
|
|
3981
|
+
type: BrandWalletCounterpartyType!
|
|
3982
|
+
value: String!
|
|
3983
|
+
}
|
|
3984
|
+
|
|
3985
|
+
input BrandWalletCounterpartyInput {
|
|
3986
|
+
type: BrandWalletCounterpartyType!
|
|
3987
|
+
value: String!
|
|
3988
|
+
}
|
|
3989
|
+
|
|
3990
|
+
enum BrandWalletCounterpartyType {
|
|
3991
|
+
AGENT_ID
|
|
3992
|
+
EMAIL
|
|
3993
|
+
HANDLE
|
|
3994
|
+
PARTY_ID
|
|
3995
|
+
PHONE
|
|
3996
|
+
}
|
|
3997
|
+
|
|
3998
|
+
type BrandWalletOperation {
|
|
3999
|
+
amountMinor: String
|
|
4000
|
+
clientRequestKey: String
|
|
4001
|
+
confirmedAt: DateTime
|
|
4002
|
+
counterparty: BrandWalletCounterparty
|
|
4003
|
+
createdAt: DateTime!
|
|
4004
|
+
createdBy: BrandWalletOperationCreator
|
|
4005
|
+
currency: String!
|
|
4006
|
+
description: String
|
|
4007
|
+
destinationWalletUid: String
|
|
4008
|
+
feeMinor: String
|
|
4009
|
+
hasLink: Boolean!
|
|
4010
|
+
kind: WalletOperationKind!
|
|
4011
|
+
lastErrorCode: String
|
|
4012
|
+
link: String
|
|
4013
|
+
linkExpiresAt: DateTime
|
|
4014
|
+
netMinor: String
|
|
4015
|
+
pendingCancelOperationUid: String
|
|
4016
|
+
preparedExpiresAt: DateTime
|
|
4017
|
+
provider: BrandWalletProvider!
|
|
4018
|
+
providerResourceId: String
|
|
4019
|
+
providerStatus: String
|
|
4020
|
+
settledAt: DateTime
|
|
4021
|
+
status: WalletOperationStatus!
|
|
4022
|
+
submittedAt: DateTime
|
|
4023
|
+
uid: String!
|
|
4024
|
+
updatedAt: DateTime!
|
|
4025
|
+
walletUid: String!
|
|
4026
|
+
}
|
|
4027
|
+
|
|
4028
|
+
type BrandWalletOperationCreator {
|
|
4029
|
+
email: String!
|
|
4030
|
+
uid: String!
|
|
4031
|
+
}
|
|
4032
|
+
|
|
4033
|
+
type BrandWalletOperationsResponse {
|
|
4034
|
+
hasNextPage: Boolean!
|
|
4035
|
+
nextCursor: String
|
|
4036
|
+
operations: [BrandWalletOperation!]!
|
|
4037
|
+
totalCount: Int!
|
|
4038
|
+
}
|
|
4039
|
+
|
|
4040
|
+
enum BrandWalletProvider {
|
|
4041
|
+
NATURAL
|
|
4042
|
+
}
|
|
4043
|
+
|
|
4044
|
+
type BrandWalletsResponse {
|
|
4045
|
+
hasNextPage: Boolean!
|
|
4046
|
+
nextCursor: String
|
|
4047
|
+
totalCount: Int!
|
|
4048
|
+
wallets: [BrandWallet!]!
|
|
4049
|
+
}
|
|
4050
|
+
|
|
4051
|
+
input CreateBrandWalletPaymentRequestInput {
|
|
4052
|
+
amountMinor: String!
|
|
4053
|
+
clientRequestKey: String!
|
|
4054
|
+
currency: String! = "USD"
|
|
4055
|
+
description: String
|
|
4056
|
+
payer: BrandWalletCounterpartyInput!
|
|
4057
|
+
}
|
|
4058
|
+
|
|
4059
|
+
input PrepareBrandWalletPaymentInput {
|
|
4060
|
+
amountMinor: String!
|
|
4061
|
+
clientRequestKey: String!
|
|
4062
|
+
counterparty: BrandWalletCounterpartyInput!
|
|
4063
|
+
currency: String! = "USD"
|
|
4064
|
+
description: String
|
|
4065
|
+
}
|
|
4066
|
+
|
|
4067
|
+
enum WalletOperationKind {
|
|
4068
|
+
CANCEL_PAYMENT
|
|
4069
|
+
CANCEL_PAYMENT_REQUEST
|
|
4070
|
+
INTERNAL_TRANSFER
|
|
4071
|
+
PAYMENT
|
|
4072
|
+
PAYMENT_REQUEST
|
|
4073
|
+
}
|
|
4074
|
+
|
|
4075
|
+
enum WalletOperationStatus {
|
|
4076
|
+
CANCELED
|
|
4077
|
+
COMPLETED
|
|
4078
|
+
DECLINED
|
|
4079
|
+
EXPIRED
|
|
4080
|
+
FAILED
|
|
4081
|
+
IN_REVIEW
|
|
4082
|
+
OPEN
|
|
4083
|
+
PENDING_CLAIM
|
|
4084
|
+
PREPARED
|
|
4085
|
+
PROCESSING
|
|
4086
|
+
QUEUED
|
|
4087
|
+
RETURNED
|
|
4088
|
+
REVIEW_REQUIRED
|
|
4089
|
+
}
|
|
4090
|
+
|
|
4091
|
+
# Venue spaces, calendar and availability
|
|
4092
|
+
enum SpaceKind {
|
|
4093
|
+
COMBINED
|
|
4094
|
+
SINGLE
|
|
4095
|
+
}
|
|
4096
|
+
|
|
4097
|
+
enum SpaceHoldStatus {
|
|
4098
|
+
CANCELLED
|
|
4099
|
+
CHALLENGED
|
|
4100
|
+
CONFIRMED
|
|
4101
|
+
EXPIRED
|
|
4102
|
+
HELD
|
|
4103
|
+
RELEASED
|
|
4104
|
+
REQUESTED
|
|
4105
|
+
}
|
|
4106
|
+
|
|
4107
|
+
enum SpaceRequestKind {
|
|
4108
|
+
PERSON
|
|
4109
|
+
PLAN
|
|
4110
|
+
TEAM
|
|
4111
|
+
}
|
|
4112
|
+
|
|
4113
|
+
enum SpaceHoldPreviewOutcome {
|
|
4114
|
+
IN_LINE
|
|
4115
|
+
OPEN
|
|
4116
|
+
UNAVAILABLE
|
|
4117
|
+
}
|
|
4118
|
+
|
|
4119
|
+
enum SpaceCalendarConflictKind {
|
|
4120
|
+
BLOCK
|
|
4121
|
+
BOOKING
|
|
4122
|
+
}
|
|
4123
|
+
|
|
4124
|
+
type PartnerSpace {
|
|
4125
|
+
capacity: Int
|
|
4126
|
+
kind: SpaceKind!
|
|
4127
|
+
name: String!
|
|
4128
|
+
"""The spaces a COMBINED space is made of. Booking either side blocks the other."""
|
|
4129
|
+
parts: [PartnerSpace!]!
|
|
4130
|
+
setupMinutes: Int!
|
|
4131
|
+
teardownMinutes: Int!
|
|
4132
|
+
uid: ID!
|
|
4133
|
+
}
|
|
4134
|
+
|
|
4135
|
+
type PartnerSpaceLocation {
|
|
4136
|
+
city: String!
|
|
4137
|
+
country: String!
|
|
4138
|
+
name: String!
|
|
4139
|
+
spaces: [PartnerSpace!]!
|
|
4140
|
+
"""IANA time zone. Calendar and availability reads fail for a location without one."""
|
|
4141
|
+
timezone: String
|
|
4142
|
+
uid: ID!
|
|
4143
|
+
}
|
|
4144
|
+
|
|
4145
|
+
type PartnerSpaceLocationsPage {
|
|
4146
|
+
hasNextPage: Boolean!
|
|
4147
|
+
locations: [PartnerSpaceLocation!]!
|
|
4148
|
+
nextCursor: String
|
|
4149
|
+
totalCount: Int!
|
|
4150
|
+
}
|
|
4151
|
+
|
|
4152
|
+
type PartnerSpaceRequest {
|
|
4153
|
+
headcount: Int
|
|
4154
|
+
organization: String
|
|
4155
|
+
requesterKind: SpaceRequestKind!
|
|
4156
|
+
title: String!
|
|
4157
|
+
uid: ID!
|
|
4158
|
+
}
|
|
4159
|
+
|
|
4160
|
+
type PartnerSpaceHold {
|
|
4161
|
+
aheadCount: Int!
|
|
4162
|
+
endsAt: DateTime!
|
|
4163
|
+
expiresAt: DateTime!
|
|
4164
|
+
isChallengeOverdue: Boolean!
|
|
4165
|
+
"""Held past expiresAt. Holds are not expired automatically and still count in line."""
|
|
4166
|
+
isLapsed: Boolean!
|
|
4167
|
+
localDate: String!
|
|
4168
|
+
occupiedEndsAt: DateTime!
|
|
4169
|
+
occupiedStartsAt: DateTime!
|
|
4170
|
+
"""Place in line among overlapping tentative holds; null once confirmed or released."""
|
|
4171
|
+
position: Int
|
|
4172
|
+
request: PartnerSpaceRequest!
|
|
4173
|
+
requestUid: ID!
|
|
4174
|
+
respondBy: DateTime
|
|
4175
|
+
spaceUid: ID!
|
|
4176
|
+
startsAt: DateTime!
|
|
4177
|
+
"""CONFIRMED is a booking. HELD and CHALLENGED are tentative holds waiting in line."""
|
|
4178
|
+
status: SpaceHoldStatus!
|
|
4179
|
+
uid: ID!
|
|
4180
|
+
}
|
|
4181
|
+
|
|
4182
|
+
type PartnerSpaceBlock {
|
|
4183
|
+
endsAt: DateTime!
|
|
4184
|
+
reason: String!
|
|
4185
|
+
"""Null when the block covers the whole location."""
|
|
4186
|
+
spaceUid: ID
|
|
4187
|
+
startsAt: DateTime!
|
|
4188
|
+
uid: ID!
|
|
4189
|
+
}
|
|
4190
|
+
|
|
4191
|
+
type SpaceCalendarClosure {
|
|
4192
|
+
endsAt: DateTime!
|
|
4193
|
+
localDate: String!
|
|
4194
|
+
note: String
|
|
4195
|
+
spaceUid: ID!
|
|
4196
|
+
startsAt: DateTime!
|
|
4197
|
+
}
|
|
4198
|
+
|
|
4199
|
+
type PartnerSpaceCalendar {
|
|
4200
|
+
blocks: [PartnerSpaceBlock!]!
|
|
4201
|
+
closures: [SpaceCalendarClosure!]!
|
|
4202
|
+
holds: [PartnerSpaceHold!]!
|
|
4203
|
+
locationName: String!
|
|
4204
|
+
locationUid: ID!
|
|
4205
|
+
spaces: [PartnerSpace!]!
|
|
4206
|
+
timezone: String
|
|
4207
|
+
}
|
|
4208
|
+
|
|
4209
|
+
type SpaceCalendarConflict {
|
|
4210
|
+
endsAt: DateTime!
|
|
4211
|
+
kind: SpaceCalendarConflictKind!
|
|
4212
|
+
"""The booking's request title or the block's reason."""
|
|
4213
|
+
label: String!
|
|
4214
|
+
"""For a booking, includes its setup and teardown."""
|
|
4215
|
+
startsAt: DateTime!
|
|
4216
|
+
"""The booking (hold) uid or the block uid."""
|
|
4217
|
+
uid: ID!
|
|
4218
|
+
}
|
|
4219
|
+
|
|
4220
|
+
type SpaceAvailabilityDate {
|
|
4221
|
+
"""
|
|
4222
|
+
For a whole day, no opening hours start on this date. With a time window,
|
|
4223
|
+
opening hours do not cover the window including setup and teardown, or the
|
|
4224
|
+
window falls entirely in a daylight saving gap.
|
|
4225
|
+
"""
|
|
4226
|
+
closed: Boolean!
|
|
4227
|
+
conflicts: [SpaceCalendarConflict!]!
|
|
4228
|
+
"""Tentative holds overlapping the checked time."""
|
|
4229
|
+
lineSize: Int!
|
|
4230
|
+
localDate: String!
|
|
4231
|
+
outcome: SpaceHoldPreviewOutcome!
|
|
4232
|
+
}
|
|
4233
|
+
|
|
4234
|
+
type SpaceAvailabilitySpace {
|
|
4235
|
+
dates: [SpaceAvailabilityDate!]!
|
|
4236
|
+
name: String!
|
|
4237
|
+
spaceUid: ID!
|
|
4238
|
+
}
|
|
4239
|
+
|
|
4240
|
+
type SpaceAvailability {
|
|
4241
|
+
spaces: [SpaceAvailabilitySpace!]!
|
|
4242
|
+
timezone: String!
|
|
4243
|
+
}
|
|
4244
|
+
|
|
4245
|
+
input SpaceCalendarInput {
|
|
4246
|
+
"""Last local date, YYYY-MM-DD, inclusive."""
|
|
4247
|
+
endsOn: String!
|
|
4248
|
+
"""Also return released holds."""
|
|
4249
|
+
includeReleased: Boolean
|
|
4250
|
+
locationUid: ID!
|
|
4251
|
+
"""At most 50. Defaults to every active space."""
|
|
4252
|
+
spaceUids: [ID!]
|
|
4253
|
+
"""First local date, YYYY-MM-DD."""
|
|
4254
|
+
startsOn: String!
|
|
4255
|
+
}
|
|
4256
|
+
|
|
4257
|
+
input SpaceAvailabilityInput {
|
|
4258
|
+
"""Local HH:mm. Give with startTime, or neither for whole days."""
|
|
4259
|
+
endTime: String
|
|
4260
|
+
"""Last local date, YYYY-MM-DD, inclusive; at most 31 days."""
|
|
4261
|
+
endsOn: String!
|
|
4262
|
+
locationUid: ID!
|
|
4263
|
+
"""At most 50. Defaults to every active space."""
|
|
4264
|
+
spaceUids: [ID!]
|
|
4265
|
+
"""Local HH:mm. A window ending at or before its start runs past midnight."""
|
|
4266
|
+
startTime: String
|
|
4267
|
+
"""First local date, YYYY-MM-DD."""
|
|
4268
|
+
startsOn: String!
|
|
4269
|
+
}
|
|
4270
|
+
# End venue spaces, calendar and availability
|