@debugged-development/ticketapp-sdk 0.0.3 → 1.0.2

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.
@@ -320,13 +320,18 @@ export type CreateCustomerInput = {
320
320
  };
321
321
  export type CreateDigitalOrderPaymentInput = {
322
322
  amountOfTickets?: InputMaybe<Scalars['Float']['input']>;
323
+ customer?: InputMaybe<PaymentCustomerInput>;
324
+ description?: InputMaybe<Scalars['String']['input']>;
323
325
  initiatedByTeamId?: InputMaybe<Scalars['ID']['input']>;
324
326
  initiatedByUserId?: InputMaybe<Scalars['ID']['input']>;
327
+ ipAddress?: InputMaybe<Scalars['String']['input']>;
325
328
  issuerId?: InputMaybe<Scalars['String']['input']>;
326
329
  orderId: Scalars['ID']['input'];
327
330
  orderItemId?: InputMaybe<Scalars['String']['input']>;
328
331
  paymentMethodId: Scalars['String']['input'];
332
+ products?: InputMaybe<Array<PaymentProductInput>>;
329
333
  redirectUrl?: InputMaybe<Scalars['String']['input']>;
334
+ reference?: InputMaybe<Scalars['String']['input']>;
330
335
  };
331
336
  export type CreateEventInput = {
332
337
  description?: InputMaybe<Scalars['String']['input']>;
@@ -1818,6 +1823,8 @@ export declare enum OrderType {
1818
1823
  export type Organization = {
1819
1824
  __typename?: 'Organization';
1820
1825
  activeEvents: Scalars['Int']['output'];
1826
+ baseAdditionalBookingsPercentage?: Maybe<Scalars['Float']['output']>;
1827
+ baseBookingsFee: Scalars['Float']['output'];
1821
1828
  billing_address_city?: Maybe<Scalars['String']['output']>;
1822
1829
  billing_address_country?: Maybe<Scalars['String']['output']>;
1823
1830
  billing_address_name?: Maybe<Scalars['String']['output']>;
@@ -2098,12 +2105,28 @@ export type Payment = {
2098
2105
  salesType: PaymentSalesType;
2099
2106
  type: PaymentType;
2100
2107
  };
2108
+ export type PaymentCompanyInput = {
2109
+ cocNumber?: InputMaybe<Scalars['String']['input']>;
2110
+ name?: InputMaybe<Scalars['String']['input']>;
2111
+ vatNumber?: InputMaybe<Scalars['String']['input']>;
2112
+ };
2113
+ export type PaymentCustomerInput = {
2114
+ company?: InputMaybe<PaymentCompanyInput>;
2115
+ email?: InputMaybe<Scalars['String']['input']>;
2116
+ firstName?: InputMaybe<Scalars['String']['input']>;
2117
+ gender?: InputMaybe<Scalars['String']['input']>;
2118
+ lastName?: InputMaybe<Scalars['String']['input']>;
2119
+ phone?: InputMaybe<Scalars['String']['input']>;
2120
+ };
2101
2121
  export type PaymentDetails = {
2102
2122
  __typename?: 'PaymentDetails';
2123
+ /** @deprecated removed in next version use paymentSpesificTransactionFee */
2103
2124
  additionalTransactionFee?: Maybe<Scalars['Float']['output']>;
2125
+ baseAdditionalTransactionFee?: Maybe<Scalars['Float']['output']>;
2126
+ baseAdditionalTransactionPercentage?: Maybe<Scalars['Float']['output']>;
2104
2127
  baseTransactionFee?: Maybe<Scalars['Float']['output']>;
2105
2128
  methods?: Maybe<Array<PaymentMethod>>;
2106
- paymentMethodeFee?: Maybe<Scalars['Float']['output']>;
2129
+ paymentSpesificTransactionFee?: Maybe<Scalars['Float']['output']>;
2107
2130
  transactionPrice: Scalars['Float']['output'];
2108
2131
  };
2109
2132
  export type PaymentMethod = {
@@ -2130,6 +2153,14 @@ export type PaymentMethodInfo = {
2130
2153
  image: Scalars['String']['output'];
2131
2154
  name: Scalars['String']['output'];
2132
2155
  };
2156
+ export type PaymentProductInput = {
2157
+ id: Scalars['String']['input'];
2158
+ name: Scalars['String']['input'];
2159
+ price: Scalars['Float']['input'];
2160
+ quantity: Scalars['Float']['input'];
2161
+ type?: InputMaybe<Scalars['String']['input']>;
2162
+ vatPercentage?: InputMaybe<Scalars['Float']['input']>;
2163
+ };
2133
2164
  /** Payment sales type of an order */
2134
2165
  export declare enum PaymentSalesType {
2135
2166
  Collect = "COLLECT",
@@ -3763,6 +3794,8 @@ export type UpdateOrganizationCurrenciesInput = {
3763
3794
  currencies: Array<Currency>;
3764
3795
  };
3765
3796
  export type UpdateOrganizationInput = {
3797
+ baseAdditionalBookingsPercentage?: InputMaybe<Scalars['Float']['input']>;
3798
+ baseBookingsFee: Scalars['Float']['input'];
3766
3799
  billing_address_city?: InputMaybe<Scalars['String']['input']>;
3767
3800
  billing_address_country?: InputMaybe<Scalars['String']['input']>;
3768
3801
  billing_address_name?: InputMaybe<Scalars['String']['input']>;
@@ -4256,6 +4289,280 @@ export type FindProductsByEventIdQuery = {
4256
4289
  } | null;
4257
4290
  }>;
4258
4291
  };
4292
+ export type FindAllPackagesQueryVariables = Exact<{
4293
+ page?: InputMaybe<PageInput>;
4294
+ tab?: InputMaybe<PackageTabType>;
4295
+ statuses?: InputMaybe<Array<PackageStatus> | PackageStatus>;
4296
+ }>;
4297
+ export type FindAllPackagesQuery = {
4298
+ __typename?: 'Query';
4299
+ findAllPackages: {
4300
+ __typename?: 'PaginatedPackage';
4301
+ count: number;
4302
+ data: Array<{
4303
+ __typename?: 'Package';
4304
+ id: string;
4305
+ slug: string;
4306
+ status: PackageStatus;
4307
+ name: string;
4308
+ description?: string | null;
4309
+ shortTitle?: string | null;
4310
+ shortDescription?: string | null;
4311
+ startAvailabilityAt?: any | null;
4312
+ endAvailabilityAt?: any | null;
4313
+ maxAmountOfPersonsPerOrder?: number | null;
4314
+ icon?: string | null;
4315
+ banner?: string | null;
4316
+ currency: Currency;
4317
+ amountOfEvents: number;
4318
+ amountOfAddons: number;
4319
+ allowedPaymentTypes: Array<PaymentType>;
4320
+ prices: {
4321
+ __typename?: 'PackagePrices';
4322
+ price: number;
4323
+ deposit?: number | null;
4324
+ discount?: number | null;
4325
+ serviceFee: number;
4326
+ };
4327
+ }>;
4328
+ };
4329
+ };
4330
+ export type FindAllPackageItemsQueryVariables = Exact<{
4331
+ packageId: Scalars['ID']['input'];
4332
+ types?: InputMaybe<Array<PackageItemType> | PackageItemType>;
4333
+ }>;
4334
+ export type FindAllPackageItemsQuery = {
4335
+ __typename?: 'Query';
4336
+ findAllPackageItems: {
4337
+ __typename?: 'PaginatedPackageItem';
4338
+ count: number;
4339
+ data: Array<{
4340
+ __typename?: 'PackageItem';
4341
+ id: string;
4342
+ name: string;
4343
+ description?: string | null;
4344
+ type: PackageItemType;
4345
+ price?: number | null;
4346
+ depositPrice?: number | null;
4347
+ discountPrice?: number | null;
4348
+ serviceFee?: number | null;
4349
+ banner?: string | null;
4350
+ package: {
4351
+ __typename?: 'Package';
4352
+ id: string;
4353
+ name: string;
4354
+ };
4355
+ activeEvents: Array<{
4356
+ __typename?: 'Event';
4357
+ id: string;
4358
+ name: string;
4359
+ startAt: any;
4360
+ endAt: any;
4361
+ timezone: string;
4362
+ icon?: string | null;
4363
+ banner?: string | null;
4364
+ location?: {
4365
+ __typename?: 'Location';
4366
+ id: string;
4367
+ name: string;
4368
+ address: string;
4369
+ } | null;
4370
+ }>;
4371
+ }>;
4372
+ };
4373
+ };
4374
+ export type SetPackageItemToOrderMutationVariables = Exact<{
4375
+ sessionId: Scalars['ID']['input'];
4376
+ amount: Scalars['Int']['input'];
4377
+ items: Array<SetPackageItem> | SetPackageItem;
4378
+ }>;
4379
+ export type SetPackageItemToOrderMutation = {
4380
+ __typename?: 'Mutation';
4381
+ setPackageItemToOrder?: {
4382
+ __typename?: 'Order';
4383
+ id: string;
4384
+ currency: Currency;
4385
+ items: Array<{
4386
+ __typename?: 'OrderItem';
4387
+ id: string;
4388
+ price?: number | null;
4389
+ depositPrice?: number | null;
4390
+ originalPrice?: number | null;
4391
+ serviceFee?: number | null;
4392
+ amount: number;
4393
+ expiredAt?: any | null;
4394
+ event: {
4395
+ __typename?: 'Event';
4396
+ id: string;
4397
+ name: string;
4398
+ startAt: any;
4399
+ endAt: any;
4400
+ timezone: string;
4401
+ icon?: string | null;
4402
+ banner?: string | null;
4403
+ location?: {
4404
+ __typename?: 'Location';
4405
+ id: string;
4406
+ name: string;
4407
+ address: string;
4408
+ } | null;
4409
+ };
4410
+ product?: {
4411
+ __typename?: 'Product';
4412
+ id: string;
4413
+ name: string;
4414
+ icon?: string | null;
4415
+ description?: string | null;
4416
+ type: ProductType;
4417
+ } | null;
4418
+ packageItem?: {
4419
+ __typename?: 'PackageItem';
4420
+ id: string;
4421
+ name: string;
4422
+ type: PackageItemType;
4423
+ package: {
4424
+ __typename?: 'Package';
4425
+ id: string;
4426
+ name: string;
4427
+ };
4428
+ } | null;
4429
+ seats?: Array<{
4430
+ __typename?: 'Seat';
4431
+ id: string;
4432
+ label: string;
4433
+ }> | null;
4434
+ }>;
4435
+ } | null;
4436
+ };
4437
+ export type SetAdditionalPackageItemToOrderMutationVariables = Exact<{
4438
+ sessionId: Scalars['ID']['input'];
4439
+ packageItemId: Scalars['ID']['input'];
4440
+ eventId: Scalars['ID']['input'];
4441
+ amount: Scalars['Int']['input'];
4442
+ }>;
4443
+ export type SetAdditionalPackageItemToOrderMutation = {
4444
+ __typename?: 'Mutation';
4445
+ setAdditionalPackageItemToOrder?: {
4446
+ __typename?: 'Order';
4447
+ id: string;
4448
+ currency: Currency;
4449
+ items: Array<{
4450
+ __typename?: 'OrderItem';
4451
+ id: string;
4452
+ price?: number | null;
4453
+ depositPrice?: number | null;
4454
+ originalPrice?: number | null;
4455
+ serviceFee?: number | null;
4456
+ amount: number;
4457
+ expiredAt?: any | null;
4458
+ event: {
4459
+ __typename?: 'Event';
4460
+ id: string;
4461
+ name: string;
4462
+ startAt: any;
4463
+ endAt: any;
4464
+ timezone: string;
4465
+ };
4466
+ product?: {
4467
+ __typename?: 'Product';
4468
+ id: string;
4469
+ name: string;
4470
+ type: ProductType;
4471
+ } | null;
4472
+ packageItem?: {
4473
+ __typename?: 'PackageItem';
4474
+ id: string;
4475
+ name: string;
4476
+ type: PackageItemType;
4477
+ package: {
4478
+ __typename?: 'Package';
4479
+ id: string;
4480
+ name: string;
4481
+ };
4482
+ } | null;
4483
+ }>;
4484
+ } | null;
4485
+ };
4486
+ export type FindAllPublicPackagesByOrganizationIdQueryVariables = Exact<{
4487
+ organizationId: Scalars['ID']['input'];
4488
+ }>;
4489
+ export type FindAllPublicPackagesByOrganizationIdQuery = {
4490
+ __typename?: 'Query';
4491
+ findAllPublicPackagesByOrganizationId: {
4492
+ __typename?: 'PaginatedPackage';
4493
+ count: number;
4494
+ data: Array<{
4495
+ __typename?: 'Package';
4496
+ id: string;
4497
+ slug: string;
4498
+ status: PackageStatus;
4499
+ name: string;
4500
+ description?: string | null;
4501
+ shortTitle?: string | null;
4502
+ shortDescription?: string | null;
4503
+ startAvailabilityAt?: any | null;
4504
+ endAvailabilityAt?: any | null;
4505
+ maxAmountOfPersonsPerOrder?: number | null;
4506
+ icon?: string | null;
4507
+ banner?: string | null;
4508
+ currency: Currency;
4509
+ amountOfEvents: number;
4510
+ amountOfAddons: number;
4511
+ prices: {
4512
+ __typename?: 'PackagePrices';
4513
+ price: number;
4514
+ deposit?: number | null;
4515
+ discount?: number | null;
4516
+ serviceFee: number;
4517
+ };
4518
+ }>;
4519
+ };
4520
+ };
4521
+ export type FindPublicItemsByPackageIdQueryVariables = Exact<{
4522
+ packageId: Scalars['ID']['input'];
4523
+ types?: InputMaybe<Array<PackageItemType> | PackageItemType>;
4524
+ page?: InputMaybe<PageInput>;
4525
+ }>;
4526
+ export type FindPublicItemsByPackageIdQuery = {
4527
+ __typename?: 'Query';
4528
+ findPublicItemsByPackageId: {
4529
+ __typename?: 'PaginatedPackageItem';
4530
+ count: number;
4531
+ data: Array<{
4532
+ __typename?: 'PackageItem';
4533
+ id: string;
4534
+ name: string;
4535
+ description?: string | null;
4536
+ type: PackageItemType;
4537
+ price?: number | null;
4538
+ depositPrice?: number | null;
4539
+ discountPrice?: number | null;
4540
+ serviceFee?: number | null;
4541
+ banner?: string | null;
4542
+ package: {
4543
+ __typename?: 'Package';
4544
+ id: string;
4545
+ name: string;
4546
+ };
4547
+ activeEvents: Array<{
4548
+ __typename?: 'Event';
4549
+ id: string;
4550
+ name: string;
4551
+ startAt: any;
4552
+ endAt: any;
4553
+ timezone: string;
4554
+ icon?: string | null;
4555
+ banner?: string | null;
4556
+ location?: {
4557
+ __typename?: 'Location';
4558
+ id: string;
4559
+ name: string;
4560
+ address: string;
4561
+ } | null;
4562
+ }>;
4563
+ }>;
4564
+ };
4565
+ };
4259
4566
  export type FindPaymentMethodsQueryVariables = Exact<{
4260
4567
  orderId: Scalars['ID']['input'];
4261
4568
  orderItemId?: InputMaybe<Scalars['String']['input']>;
@@ -4304,6 +4611,12 @@ export declare const CreateOrderCustomerDocument: import("graphql").DocumentNode
4304
4611
  export declare const DeleteOrderDocument: import("graphql").DocumentNode;
4305
4612
  export declare const EventOverviewPageDocument: import("graphql").DocumentNode;
4306
4613
  export declare const FindProductsByEventIdDocument: import("graphql").DocumentNode;
4614
+ export declare const FindAllPackagesDocument: import("graphql").DocumentNode;
4615
+ export declare const FindAllPackageItemsDocument: import("graphql").DocumentNode;
4616
+ export declare const SetPackageItemToOrderDocument: import("graphql").DocumentNode;
4617
+ export declare const SetAdditionalPackageItemToOrderDocument: import("graphql").DocumentNode;
4618
+ export declare const FindAllPublicPackagesByOrganizationIdDocument: import("graphql").DocumentNode;
4619
+ export declare const FindPublicItemsByPackageIdDocument: import("graphql").DocumentNode;
4307
4620
  export declare const FindPaymentMethodsDocument: import("graphql").DocumentNode;
4308
4621
  export declare const CreateDigitalPaymentDocument: import("graphql").DocumentNode;
4309
4622
  export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
@@ -4317,6 +4630,12 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
4317
4630
  deleteOrder(variables: DeleteOrderMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<DeleteOrderMutation>;
4318
4631
  EventOverviewPage(variables: EventOverviewPageQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<EventOverviewPageQuery>;
4319
4632
  findProductsByEventId(variables: FindProductsByEventIdQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindProductsByEventIdQuery>;
4633
+ findAllPackages(variables?: FindAllPackagesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindAllPackagesQuery>;
4634
+ findAllPackageItems(variables: FindAllPackageItemsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindAllPackageItemsQuery>;
4635
+ setPackageItemToOrder(variables: SetPackageItemToOrderMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<SetPackageItemToOrderMutation>;
4636
+ setAdditionalPackageItemToOrder(variables: SetAdditionalPackageItemToOrderMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<SetAdditionalPackageItemToOrderMutation>;
4637
+ findAllPublicPackagesByOrganizationId(variables: FindAllPublicPackagesByOrganizationIdQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindAllPublicPackagesByOrganizationIdQuery>;
4638
+ findPublicItemsByPackageId(variables: FindPublicItemsByPackageIdQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindPublicItemsByPackageIdQuery>;
4320
4639
  findPaymentMethods(variables: FindPaymentMethodsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindPaymentMethodsQuery>;
4321
4640
  createDigitalPayment(variables: CreateDigitalPaymentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateDigitalPaymentMutation>;
4322
4641
  };