@itm-studio/partner-sdk 0.6.9 → 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 +90 -0
- package/dist/index.d.mts +309 -1
- package/dist/index.d.ts +309 -1
- package/dist/index.js +354 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +354 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/partner.graphql +196 -0
package/package.json
CHANGED
package/schema/partner.graphql
CHANGED
|
@@ -2270,6 +2270,21 @@ type Query {
|
|
|
2270
2270
|
getPartnerPlanningProposal(uid: String!): PlanningProposal!
|
|
2271
2271
|
getPartnerGuestListCheckIns(cursor: String, guestlistUid: String!, momentSlug: String!, take: Int): GetPartnerGuestListCheckInsResponse!
|
|
2272
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!
|
|
2273
2288
|
}
|
|
2274
2289
|
|
|
2275
2290
|
# ─── Input Types ──────────────────────────────────────────────────────────────
|
|
@@ -4072,3 +4087,184 @@ enum WalletOperationStatus {
|
|
|
4072
4087
|
RETURNED
|
|
4073
4088
|
REVIEW_REQUIRED
|
|
4074
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
|