@takaro/apiclient 0.0.0-dev.e4f01af → 0.0.0-dev.e637394

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.
@@ -2264,6 +2264,18 @@ export interface DomainCreateInputDTO {
2264
2264
  * @memberof DomainCreateInputDTO
2265
2265
  */
2266
2266
  maxFunctionsInModule?: number;
2267
+ /**
2268
+ *
2269
+ * @type {number}
2270
+ * @memberof DomainCreateInputDTO
2271
+ */
2272
+ maxCustomRoles?: number;
2273
+ /**
2274
+ *
2275
+ * @type {number}
2276
+ * @memberof DomainCreateInputDTO
2277
+ */
2278
+ maxDiscordLinkedRoles?: number;
2267
2279
  }
2268
2280
 
2269
2281
  export const DomainCreateInputDTOStateEnum = {
@@ -2422,6 +2434,18 @@ export interface DomainOutputDTO {
2422
2434
  * @memberof DomainOutputDTO
2423
2435
  */
2424
2436
  maxFunctionsInModule: number;
2437
+ /**
2438
+ *
2439
+ * @type {number}
2440
+ * @memberof DomainOutputDTO
2441
+ */
2442
+ maxCustomRoles: number;
2443
+ /**
2444
+ *
2445
+ * @type {number}
2446
+ * @memberof DomainOutputDTO
2447
+ */
2448
+ maxDiscordLinkedRoles: number;
2425
2449
  /**
2426
2450
  *
2427
2451
  * @type {string}
@@ -2653,6 +2677,18 @@ export interface DomainUpdateInputDTO {
2653
2677
  * @memberof DomainUpdateInputDTO
2654
2678
  */
2655
2679
  maxFunctionsInModule?: number;
2680
+ /**
2681
+ *
2682
+ * @type {number}
2683
+ * @memberof DomainUpdateInputDTO
2684
+ */
2685
+ maxCustomRoles?: number;
2686
+ /**
2687
+ *
2688
+ * @type {number}
2689
+ * @memberof DomainUpdateInputDTO
2690
+ */
2691
+ maxDiscordLinkedRoles?: number;
2656
2692
  }
2657
2693
 
2658
2694
  export const DomainUpdateInputDTOStateEnum = {
@@ -2664,6 +2700,50 @@ export const DomainUpdateInputDTOStateEnum = {
2664
2700
  export type DomainUpdateInputDTOStateEnum =
2665
2701
  (typeof DomainUpdateInputDTOStateEnum)[keyof typeof DomainUpdateInputDTOStateEnum];
2666
2702
 
2703
+ /**
2704
+ *
2705
+ * @export
2706
+ * @interface EffectiveStorefrontConfigDTO
2707
+ */
2708
+ export interface EffectiveStorefrontConfigDTO {
2709
+ /**
2710
+ *
2711
+ * @type {string}
2712
+ * @memberof EffectiveStorefrontConfigDTO
2713
+ */
2714
+ templateId: string;
2715
+ /**
2716
+ *
2717
+ * @type {object}
2718
+ * @memberof EffectiveStorefrontConfigDTO
2719
+ */
2720
+ values: object;
2721
+ /**
2722
+ *
2723
+ * @type {object}
2724
+ * @memberof EffectiveStorefrontConfigDTO
2725
+ */
2726
+ schema: object;
2727
+ }
2728
+ /**
2729
+ *
2730
+ * @export
2731
+ * @interface EffectiveStorefrontConfigOutputDTOAPI
2732
+ */
2733
+ export interface EffectiveStorefrontConfigOutputDTOAPI {
2734
+ /**
2735
+ *
2736
+ * @type {EffectiveStorefrontConfigDTO}
2737
+ * @memberof EffectiveStorefrontConfigOutputDTOAPI
2738
+ */
2739
+ data: EffectiveStorefrontConfigDTO;
2740
+ /**
2741
+ *
2742
+ * @type {MetadataOutput}
2743
+ * @memberof EffectiveStorefrontConfigOutputDTOAPI
2744
+ */
2745
+ meta: MetadataOutput;
2746
+ }
2667
2747
  /**
2668
2748
  *
2669
2749
  * @export
@@ -6861,6 +6941,475 @@ export interface InviteOutputDTO {
6861
6941
  */
6862
6942
  devServer: string;
6863
6943
  }
6944
+ /**
6945
+ *
6946
+ * @export
6947
+ * @interface InviteLinkCreateInputDTO
6948
+ */
6949
+ export interface InviteLinkCreateInputDTO {
6950
+ /**
6951
+ *
6952
+ * @type {Array<string>}
6953
+ * @memberof InviteLinkCreateInputDTO
6954
+ */
6955
+ roleIds?: Array<string>;
6956
+ /**
6957
+ *
6958
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
6959
+ * @memberof InviteLinkCreateInputDTO
6960
+ */
6961
+ expiresAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
6962
+ /**
6963
+ *
6964
+ * @type {number}
6965
+ * @memberof InviteLinkCreateInputDTO
6966
+ */
6967
+ maxUses?: number;
6968
+ }
6969
+ /**
6970
+ *
6971
+ * @export
6972
+ * @interface InviteLinkCreateResultDTO
6973
+ */
6974
+ export interface InviteLinkCreateResultDTO {
6975
+ /**
6976
+ *
6977
+ * @type {string}
6978
+ * @memberof InviteLinkCreateResultDTO
6979
+ */
6980
+ inviteUrl: string;
6981
+ /**
6982
+ *
6983
+ * @type {string}
6984
+ * @memberof InviteLinkCreateResultDTO
6985
+ */
6986
+ token: string;
6987
+ /**
6988
+ *
6989
+ * @type {string}
6990
+ * @memberof InviteLinkCreateResultDTO
6991
+ */
6992
+ id: string;
6993
+ /**
6994
+ *
6995
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
6996
+ * @memberof InviteLinkCreateResultDTO
6997
+ */
6998
+ createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
6999
+ /**
7000
+ *
7001
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7002
+ * @memberof InviteLinkCreateResultDTO
7003
+ */
7004
+ updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7005
+ /**
7006
+ *
7007
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7008
+ * @memberof InviteLinkCreateResultDTO
7009
+ */
7010
+ expiresAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7011
+ /**
7012
+ *
7013
+ * @type {number}
7014
+ * @memberof InviteLinkCreateResultDTO
7015
+ */
7016
+ maxUses?: number;
7017
+ /**
7018
+ *
7019
+ * @type {number}
7020
+ * @memberof InviteLinkCreateResultDTO
7021
+ */
7022
+ uses: number;
7023
+ /**
7024
+ *
7025
+ * @type {number}
7026
+ * @memberof InviteLinkCreateResultDTO
7027
+ */
7028
+ remaining?: number;
7029
+ /**
7030
+ *
7031
+ * @type {string}
7032
+ * @memberof InviteLinkCreateResultDTO
7033
+ */
7034
+ status: InviteLinkCreateResultDTOStatusEnum;
7035
+ /**
7036
+ *
7037
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7038
+ * @memberof InviteLinkCreateResultDTO
7039
+ */
7040
+ revokedAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7041
+ /**
7042
+ *
7043
+ * @type {string}
7044
+ * @memberof InviteLinkCreateResultDTO
7045
+ */
7046
+ createdBy?: string;
7047
+ /**
7048
+ *
7049
+ * @type {Array<InviteLinkRoleDTO>}
7050
+ * @memberof InviteLinkCreateResultDTO
7051
+ */
7052
+ roles: Array<InviteLinkRoleDTO>;
7053
+ }
7054
+
7055
+ export const InviteLinkCreateResultDTOStatusEnum = {
7056
+ Active: 'ACTIVE',
7057
+ Revoked: 'REVOKED',
7058
+ Expired: 'EXPIRED',
7059
+ Depleted: 'DEPLETED',
7060
+ } as const;
7061
+
7062
+ export type InviteLinkCreateResultDTOStatusEnum =
7063
+ (typeof InviteLinkCreateResultDTOStatusEnum)[keyof typeof InviteLinkCreateResultDTOStatusEnum];
7064
+
7065
+ /**
7066
+ *
7067
+ * @export
7068
+ * @interface InviteLinkCreateResultDTOAPI
7069
+ */
7070
+ export interface InviteLinkCreateResultDTOAPI {
7071
+ /**
7072
+ *
7073
+ * @type {InviteLinkCreateResultDTO}
7074
+ * @memberof InviteLinkCreateResultDTOAPI
7075
+ */
7076
+ data: InviteLinkCreateResultDTO;
7077
+ /**
7078
+ *
7079
+ * @type {MetadataOutput}
7080
+ * @memberof InviteLinkCreateResultDTOAPI
7081
+ */
7082
+ meta: MetadataOutput;
7083
+ }
7084
+ /**
7085
+ *
7086
+ * @export
7087
+ * @interface InviteLinkOutputDTO
7088
+ */
7089
+ export interface InviteLinkOutputDTO {
7090
+ /**
7091
+ *
7092
+ * @type {string}
7093
+ * @memberof InviteLinkOutputDTO
7094
+ */
7095
+ id: string;
7096
+ /**
7097
+ *
7098
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7099
+ * @memberof InviteLinkOutputDTO
7100
+ */
7101
+ createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7102
+ /**
7103
+ *
7104
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7105
+ * @memberof InviteLinkOutputDTO
7106
+ */
7107
+ updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7108
+ /**
7109
+ *
7110
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7111
+ * @memberof InviteLinkOutputDTO
7112
+ */
7113
+ expiresAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7114
+ /**
7115
+ *
7116
+ * @type {number}
7117
+ * @memberof InviteLinkOutputDTO
7118
+ */
7119
+ maxUses?: number;
7120
+ /**
7121
+ *
7122
+ * @type {number}
7123
+ * @memberof InviteLinkOutputDTO
7124
+ */
7125
+ uses: number;
7126
+ /**
7127
+ *
7128
+ * @type {number}
7129
+ * @memberof InviteLinkOutputDTO
7130
+ */
7131
+ remaining?: number;
7132
+ /**
7133
+ *
7134
+ * @type {string}
7135
+ * @memberof InviteLinkOutputDTO
7136
+ */
7137
+ status: InviteLinkOutputDTOStatusEnum;
7138
+ /**
7139
+ *
7140
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7141
+ * @memberof InviteLinkOutputDTO
7142
+ */
7143
+ revokedAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7144
+ /**
7145
+ *
7146
+ * @type {string}
7147
+ * @memberof InviteLinkOutputDTO
7148
+ */
7149
+ createdBy?: string;
7150
+ /**
7151
+ *
7152
+ * @type {Array<InviteLinkRoleDTO>}
7153
+ * @memberof InviteLinkOutputDTO
7154
+ */
7155
+ roles: Array<InviteLinkRoleDTO>;
7156
+ }
7157
+
7158
+ export const InviteLinkOutputDTOStatusEnum = {
7159
+ Active: 'ACTIVE',
7160
+ Revoked: 'REVOKED',
7161
+ Expired: 'EXPIRED',
7162
+ Depleted: 'DEPLETED',
7163
+ } as const;
7164
+
7165
+ export type InviteLinkOutputDTOStatusEnum =
7166
+ (typeof InviteLinkOutputDTOStatusEnum)[keyof typeof InviteLinkOutputDTOStatusEnum];
7167
+
7168
+ /**
7169
+ *
7170
+ * @export
7171
+ * @interface InviteLinkOutputDTOAPI
7172
+ */
7173
+ export interface InviteLinkOutputDTOAPI {
7174
+ /**
7175
+ *
7176
+ * @type {InviteLinkOutputDTO}
7177
+ * @memberof InviteLinkOutputDTOAPI
7178
+ */
7179
+ data: InviteLinkOutputDTO;
7180
+ /**
7181
+ *
7182
+ * @type {MetadataOutput}
7183
+ * @memberof InviteLinkOutputDTOAPI
7184
+ */
7185
+ meta: MetadataOutput;
7186
+ }
7187
+ /**
7188
+ *
7189
+ * @export
7190
+ * @interface InviteLinkOutputArrayDTOAPI
7191
+ */
7192
+ export interface InviteLinkOutputArrayDTOAPI {
7193
+ /**
7194
+ *
7195
+ * @type {Array<InviteLinkOutputDTO>}
7196
+ * @memberof InviteLinkOutputArrayDTOAPI
7197
+ */
7198
+ data: Array<InviteLinkOutputDTO>;
7199
+ /**
7200
+ *
7201
+ * @type {MetadataOutput}
7202
+ * @memberof InviteLinkOutputArrayDTOAPI
7203
+ */
7204
+ meta: MetadataOutput;
7205
+ }
7206
+ /**
7207
+ *
7208
+ * @export
7209
+ * @interface InviteLinkPreviewDTO
7210
+ */
7211
+ export interface InviteLinkPreviewDTO {
7212
+ /**
7213
+ *
7214
+ * @type {InviteLinkPreviewDomainDTO}
7215
+ * @memberof InviteLinkPreviewDTO
7216
+ */
7217
+ domain: InviteLinkPreviewDomainDTO;
7218
+ /**
7219
+ *
7220
+ * @type {Array<InviteLinkPreviewRoleDTO>}
7221
+ * @memberof InviteLinkPreviewDTO
7222
+ */
7223
+ roles: Array<InviteLinkPreviewRoleDTO>;
7224
+ /**
7225
+ *
7226
+ * @type {string}
7227
+ * @memberof InviteLinkPreviewDTO
7228
+ */
7229
+ status: InviteLinkPreviewDTOStatusEnum;
7230
+ /**
7231
+ *
7232
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7233
+ * @memberof InviteLinkPreviewDTO
7234
+ */
7235
+ expiresAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7236
+ /**
7237
+ *
7238
+ * @type {number}
7239
+ * @memberof InviteLinkPreviewDTO
7240
+ */
7241
+ remaining?: number;
7242
+ }
7243
+
7244
+ export const InviteLinkPreviewDTOStatusEnum = {
7245
+ Active: 'ACTIVE',
7246
+ Revoked: 'REVOKED',
7247
+ Expired: 'EXPIRED',
7248
+ Depleted: 'DEPLETED',
7249
+ } as const;
7250
+
7251
+ export type InviteLinkPreviewDTOStatusEnum =
7252
+ (typeof InviteLinkPreviewDTOStatusEnum)[keyof typeof InviteLinkPreviewDTOStatusEnum];
7253
+
7254
+ /**
7255
+ *
7256
+ * @export
7257
+ * @interface InviteLinkPreviewDTOAPI
7258
+ */
7259
+ export interface InviteLinkPreviewDTOAPI {
7260
+ /**
7261
+ *
7262
+ * @type {InviteLinkPreviewDTO}
7263
+ * @memberof InviteLinkPreviewDTOAPI
7264
+ */
7265
+ data: InviteLinkPreviewDTO;
7266
+ /**
7267
+ *
7268
+ * @type {MetadataOutput}
7269
+ * @memberof InviteLinkPreviewDTOAPI
7270
+ */
7271
+ meta: MetadataOutput;
7272
+ }
7273
+ /**
7274
+ *
7275
+ * @export
7276
+ * @interface InviteLinkPreviewDomainDTO
7277
+ */
7278
+ export interface InviteLinkPreviewDomainDTO {
7279
+ /**
7280
+ *
7281
+ * @type {string}
7282
+ * @memberof InviteLinkPreviewDomainDTO
7283
+ */
7284
+ id: string;
7285
+ /**
7286
+ *
7287
+ * @type {string}
7288
+ * @memberof InviteLinkPreviewDomainDTO
7289
+ */
7290
+ name: string;
7291
+ }
7292
+ /**
7293
+ *
7294
+ * @export
7295
+ * @interface InviteLinkPreviewRoleDTO
7296
+ */
7297
+ export interface InviteLinkPreviewRoleDTO {
7298
+ /**
7299
+ *
7300
+ * @type {string}
7301
+ * @memberof InviteLinkPreviewRoleDTO
7302
+ */
7303
+ id: string;
7304
+ /**
7305
+ *
7306
+ * @type {string}
7307
+ * @memberof InviteLinkPreviewRoleDTO
7308
+ */
7309
+ name: string;
7310
+ }
7311
+ /**
7312
+ *
7313
+ * @export
7314
+ * @interface InviteLinkRoleDTO
7315
+ */
7316
+ export interface InviteLinkRoleDTO {
7317
+ /**
7318
+ *
7319
+ * @type {string}
7320
+ * @memberof InviteLinkRoleDTO
7321
+ */
7322
+ roleId: string;
7323
+ /**
7324
+ *
7325
+ * @type {string}
7326
+ * @memberof InviteLinkRoleDTO
7327
+ */
7328
+ name: string;
7329
+ }
7330
+ /**
7331
+ *
7332
+ * @export
7333
+ * @interface InviteLinkSearchInputDTO
7334
+ */
7335
+ export interface InviteLinkSearchInputDTO {
7336
+ /**
7337
+ *
7338
+ * @type {string}
7339
+ * @memberof InviteLinkSearchInputDTO
7340
+ */
7341
+ sortBy?: string;
7342
+ /**
7343
+ *
7344
+ * @type {any}
7345
+ * @memberof InviteLinkSearchInputDTO
7346
+ */
7347
+ filters?: any;
7348
+ /**
7349
+ *
7350
+ * @type {any}
7351
+ * @memberof InviteLinkSearchInputDTO
7352
+ */
7353
+ search?: any;
7354
+ /**
7355
+ *
7356
+ * @type {any}
7357
+ * @memberof InviteLinkSearchInputDTO
7358
+ */
7359
+ greaterThan?: any;
7360
+ /**
7361
+ *
7362
+ * @type {any}
7363
+ * @memberof InviteLinkSearchInputDTO
7364
+ */
7365
+ lessThan?: any;
7366
+ /**
7367
+ *
7368
+ * @type {number}
7369
+ * @memberof InviteLinkSearchInputDTO
7370
+ */
7371
+ page?: number;
7372
+ /**
7373
+ *
7374
+ * @type {number}
7375
+ * @memberof InviteLinkSearchInputDTO
7376
+ */
7377
+ limit?: number;
7378
+ /**
7379
+ *
7380
+ * @type {string}
7381
+ * @memberof InviteLinkSearchInputDTO
7382
+ */
7383
+ sortDirection?: InviteLinkSearchInputDTOSortDirectionEnum;
7384
+ /**
7385
+ *
7386
+ * @type {Array<string>}
7387
+ * @memberof InviteLinkSearchInputDTO
7388
+ */
7389
+ extend?: Array<string>;
7390
+ }
7391
+
7392
+ export const InviteLinkSearchInputDTOSortDirectionEnum = {
7393
+ Asc: 'asc',
7394
+ Desc: 'desc',
7395
+ } as const;
7396
+
7397
+ export type InviteLinkSearchInputDTOSortDirectionEnum =
7398
+ (typeof InviteLinkSearchInputDTOSortDirectionEnum)[keyof typeof InviteLinkSearchInputDTOSortDirectionEnum];
7399
+
7400
+ /**
7401
+ *
7402
+ * @export
7403
+ * @interface RedeemInputDTO
7404
+ */
7405
+ export interface RedeemInputDTO {
7406
+ /**
7407
+ *
7408
+ * @type {string}
7409
+ * @memberof RedeemInputDTO
7410
+ */
7411
+ token: string;
7412
+ }
6864
7413
  /**
6865
7414
  *
6866
7415
  * @export
@@ -7593,7 +8142,7 @@ export interface MeOutputDTO {
7593
8142
  * @type {UserOutputWithRolesDTO}
7594
8143
  * @memberof MeOutputDTO
7595
8144
  */
7596
- user: UserOutputWithRolesDTO;
8145
+ user?: UserOutputWithRolesDTO;
7597
8146
  /**
7598
8147
  *
7599
8148
  * @type {Array<DomainOutputDTO>}
@@ -7605,7 +8154,7 @@ export interface MeOutputDTO {
7605
8154
  * @type {string}
7606
8155
  * @memberof MeOutputDTO
7607
8156
  */
7608
- domain: string;
8157
+ domain?: string;
7609
8158
  /**
7610
8159
  *
7611
8160
  * @type {PlayerOutputWithRolesDTO}
@@ -12847,7 +13396,7 @@ export interface RoleUpdateInputDTO {
12847
13396
  * @type {string}
12848
13397
  * @memberof RoleUpdateInputDTO
12849
13398
  */
12850
- linkedDiscordRoleId?: string;
13399
+ linkedDiscordRoleId?: string | null;
12851
13400
  }
12852
13401
  /**
12853
13402
  *
@@ -14053,6 +14602,25 @@ export interface ShopDeadStockItemDTO {
14053
14602
  */
14054
14603
  daysSinceLastSale?: number;
14055
14604
  }
14605
+ /**
14606
+ *
14607
+ * @export
14608
+ * @interface ShopImportFailureDTO
14609
+ */
14610
+ export interface ShopImportFailureDTO {
14611
+ /**
14612
+ *
14613
+ * @type {string}
14614
+ * @memberof ShopImportFailureDTO
14615
+ */
14616
+ name: string;
14617
+ /**
14618
+ *
14619
+ * @type {string}
14620
+ * @memberof ShopImportFailureDTO
14621
+ */
14622
+ reason: string;
14623
+ }
14056
14624
  /**
14057
14625
  *
14058
14626
  * @export
@@ -14078,6 +14646,44 @@ export interface ShopImportOptions {
14078
14646
  */
14079
14647
  gameServerId: string;
14080
14648
  }
14649
+ /**
14650
+ *
14651
+ * @export
14652
+ * @interface ShopImportResultDTO
14653
+ */
14654
+ export interface ShopImportResultDTO {
14655
+ /**
14656
+ *
14657
+ * @type {number}
14658
+ * @memberof ShopImportResultDTO
14659
+ */
14660
+ imported: number;
14661
+ /**
14662
+ *
14663
+ * @type {Array<ShopImportFailureDTO>}
14664
+ * @memberof ShopImportResultDTO
14665
+ */
14666
+ failed: Array<ShopImportFailureDTO>;
14667
+ }
14668
+ /**
14669
+ *
14670
+ * @export
14671
+ * @interface ShopImportResultDTOAPI
14672
+ */
14673
+ export interface ShopImportResultDTOAPI {
14674
+ /**
14675
+ *
14676
+ * @type {ShopImportResultDTO}
14677
+ * @memberof ShopImportResultDTOAPI
14678
+ */
14679
+ data: ShopImportResultDTO;
14680
+ /**
14681
+ *
14682
+ * @type {MetadataOutput}
14683
+ * @memberof ShopImportResultDTOAPI
14684
+ */
14685
+ meta: MetadataOutput;
14686
+ }
14081
14687
  /**
14082
14688
  *
14083
14689
  * @export
@@ -15220,6 +15826,175 @@ export interface SmallModuleVersionOutputDTO {
15220
15826
  */
15221
15827
  updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
15222
15828
  }
15829
+ /**
15830
+ *
15831
+ * @export
15832
+ * @interface StorefrontConfigCreateDTO
15833
+ */
15834
+ export interface StorefrontConfigCreateDTO {
15835
+ /**
15836
+ *
15837
+ * @type {string}
15838
+ * @memberof StorefrontConfigCreateDTO
15839
+ */
15840
+ gameServerId: string;
15841
+ /**
15842
+ *
15843
+ * @type {string}
15844
+ * @memberof StorefrontConfigCreateDTO
15845
+ */
15846
+ templateId: string;
15847
+ /**
15848
+ *
15849
+ * @type {object}
15850
+ * @memberof StorefrontConfigCreateDTO
15851
+ */
15852
+ values?: object;
15853
+ }
15854
+ /**
15855
+ *
15856
+ * @export
15857
+ * @interface StorefrontConfigOutputDTO
15858
+ */
15859
+ export interface StorefrontConfigOutputDTO {
15860
+ /**
15861
+ *
15862
+ * @type {string}
15863
+ * @memberof StorefrontConfigOutputDTO
15864
+ */
15865
+ gameServerId: string;
15866
+ /**
15867
+ *
15868
+ * @type {string}
15869
+ * @memberof StorefrontConfigOutputDTO
15870
+ */
15871
+ templateId: string;
15872
+ /**
15873
+ *
15874
+ * @type {object}
15875
+ * @memberof StorefrontConfigOutputDTO
15876
+ */
15877
+ values: object;
15878
+ /**
15879
+ *
15880
+ * @type {string}
15881
+ * @memberof StorefrontConfigOutputDTO
15882
+ */
15883
+ id: string;
15884
+ /**
15885
+ *
15886
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
15887
+ * @memberof StorefrontConfigOutputDTO
15888
+ */
15889
+ createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
15890
+ /**
15891
+ *
15892
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
15893
+ * @memberof StorefrontConfigOutputDTO
15894
+ */
15895
+ updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
15896
+ }
15897
+ /**
15898
+ *
15899
+ * @export
15900
+ * @interface StorefrontConfigUpdateDTO
15901
+ */
15902
+ export interface StorefrontConfigUpdateDTO {
15903
+ /**
15904
+ *
15905
+ * @type {string}
15906
+ * @memberof StorefrontConfigUpdateDTO
15907
+ */
15908
+ templateId?: string;
15909
+ /**
15910
+ *
15911
+ * @type {object}
15912
+ * @memberof StorefrontConfigUpdateDTO
15913
+ */
15914
+ values?: object;
15915
+ }
15916
+ /**
15917
+ *
15918
+ * @export
15919
+ * @interface StorefrontConfigUpsertBody
15920
+ */
15921
+ export interface StorefrontConfigUpsertBody {
15922
+ /**
15923
+ *
15924
+ * @type {string}
15925
+ * @memberof StorefrontConfigUpsertBody
15926
+ */
15927
+ templateId: string;
15928
+ /**
15929
+ *
15930
+ * @type {object}
15931
+ * @memberof StorefrontConfigUpsertBody
15932
+ */
15933
+ values: object;
15934
+ }
15935
+ /**
15936
+ *
15937
+ * @export
15938
+ * @interface StorefrontConfigUpsertDTO
15939
+ */
15940
+ export interface StorefrontConfigUpsertDTO {
15941
+ /**
15942
+ *
15943
+ * @type {string}
15944
+ * @memberof StorefrontConfigUpsertDTO
15945
+ */
15946
+ templateId: string;
15947
+ /**
15948
+ *
15949
+ * @type {object}
15950
+ * @memberof StorefrontConfigUpsertDTO
15951
+ */
15952
+ values: object;
15953
+ }
15954
+ /**
15955
+ *
15956
+ * @export
15957
+ * @interface StorefrontTemplateDTO
15958
+ */
15959
+ export interface StorefrontTemplateDTO {
15960
+ /**
15961
+ *
15962
+ * @type {string}
15963
+ * @memberof StorefrontTemplateDTO
15964
+ */
15965
+ id: string;
15966
+ /**
15967
+ *
15968
+ * @type {string}
15969
+ * @memberof StorefrontTemplateDTO
15970
+ */
15971
+ name: string;
15972
+ /**
15973
+ *
15974
+ * @type {object}
15975
+ * @memberof StorefrontTemplateDTO
15976
+ */
15977
+ schema: object;
15978
+ }
15979
+ /**
15980
+ *
15981
+ * @export
15982
+ * @interface StorefrontTemplateOutputArrayDTOAPI
15983
+ */
15984
+ export interface StorefrontTemplateOutputArrayDTOAPI {
15985
+ /**
15986
+ *
15987
+ * @type {Array<StorefrontTemplateDTO>}
15988
+ * @memberof StorefrontTemplateOutputArrayDTOAPI
15989
+ */
15990
+ data: Array<StorefrontTemplateDTO>;
15991
+ /**
15992
+ *
15993
+ * @type {MetadataOutput}
15994
+ * @memberof StorefrontTemplateOutputArrayDTOAPI
15995
+ */
15996
+ meta: MetadataOutput;
15997
+ }
15223
15998
  /**
15224
15999
  *
15225
16000
  * @export
@@ -16830,6 +17605,38 @@ export interface UserAssignmentOutputDTO {
16830
17605
  */
16831
17606
  updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
16832
17607
  }
17608
+ /**
17609
+ *
17610
+ * @export
17611
+ * @interface UserCountOutputDTO
17612
+ */
17613
+ export interface UserCountOutputDTO {
17614
+ /**
17615
+ *
17616
+ * @type {number}
17617
+ * @memberof UserCountOutputDTO
17618
+ */
17619
+ count: number;
17620
+ }
17621
+ /**
17622
+ *
17623
+ * @export
17624
+ * @interface UserCountOutputDTOAPI
17625
+ */
17626
+ export interface UserCountOutputDTOAPI {
17627
+ /**
17628
+ *
17629
+ * @type {UserCountOutputDTO}
17630
+ * @memberof UserCountOutputDTOAPI
17631
+ */
17632
+ data: UserCountOutputDTO;
17633
+ /**
17634
+ *
17635
+ * @type {MetadataOutput}
17636
+ * @memberof UserCountOutputDTOAPI
17637
+ */
17638
+ meta: MetadataOutput;
17639
+ }
16833
17640
  /**
16834
17641
  *
16835
17642
  * @export
@@ -16977,6 +17784,12 @@ export interface UserOutputDTO {
16977
17784
  * @memberof UserOutputDTO
16978
17785
  */
16979
17786
  isDashboardUser: boolean;
17787
+ /**
17788
+ *
17789
+ * @type {boolean}
17790
+ * @memberof UserOutputDTO
17791
+ */
17792
+ isSupportAccount: boolean;
16980
17793
  /**
16981
17794
  *
16982
17795
  * @type {string}
@@ -16995,6 +17808,12 @@ export interface UserOutputDTO {
16995
17808
  * @memberof UserOutputDTO
16996
17809
  */
16997
17810
  updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
17811
+ /**
17812
+ *
17813
+ * @type {string}
17814
+ * @memberof UserOutputDTO
17815
+ */
17816
+ inviteLinkId?: string;
16998
17817
  }
16999
17818
  /**
17000
17819
  *
@@ -17093,6 +17912,37 @@ export interface UserOutputWithRolesDTO {
17093
17912
  * @memberof UserOutputWithRolesDTO
17094
17913
  */
17095
17914
  isDashboardUser: boolean;
17915
+ /**
17916
+ *
17917
+ * @type {boolean}
17918
+ * @memberof UserOutputWithRolesDTO
17919
+ */
17920
+ isSupportAccount: boolean;
17921
+ /**
17922
+ *
17923
+ * @type {string}
17924
+ * @memberof UserOutputWithRolesDTO
17925
+ */
17926
+ inviteLinkId?: string;
17927
+ }
17928
+ /**
17929
+ *
17930
+ * @export
17931
+ * @interface UserOutputWithRolesDTOAPI
17932
+ */
17933
+ export interface UserOutputWithRolesDTOAPI {
17934
+ /**
17935
+ *
17936
+ * @type {UserOutputWithRolesDTO}
17937
+ * @memberof UserOutputWithRolesDTOAPI
17938
+ */
17939
+ data: UserOutputWithRolesDTO;
17940
+ /**
17941
+ *
17942
+ * @type {MetadataOutput}
17943
+ * @memberof UserOutputWithRolesDTOAPI
17944
+ */
17945
+ meta: MetadataOutput;
17096
17946
  }
17097
17947
  /**
17098
17948
  *
@@ -18299,7 +19149,7 @@ export const AnalyticsApiAxiosParamCreator = function (configuration?: Configura
18299
19149
  };
18300
19150
  },
18301
19151
  /**
18302
- * Normalized 0-1 scores across five dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
19152
+ * Normalized 0-1 scores across six dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
18303
19153
  * @summary Get module health scores
18304
19154
  * @param {string} [startDate]
18305
19155
  * @param {string} [endDate]
@@ -19486,7 +20336,7 @@ export const AnalyticsApiAxiosParamCreator = function (configuration?: Configura
19486
20336
  },
19487
20337
  /**
19488
20338
  * Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetTopModulesByVolume`
19489
- * @summary Get top modules by event volume
20339
+ * @summary Get top modules by execution volume
19490
20340
  * @param {string} [startDate]
19491
20341
  * @param {string} [endDate]
19492
20342
  * @param {string} [gameServerId]
@@ -20020,7 +20870,7 @@ export const AnalyticsApiFp = function (configuration?: Configuration) {
20020
20870
  )(axios, localVarOperationServerBasePath || basePath);
20021
20871
  },
20022
20872
  /**
20023
- * Normalized 0-1 scores across five dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
20873
+ * Normalized 0-1 scores across six dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
20024
20874
  * @summary Get module health scores
20025
20875
  * @param {string} [startDate]
20026
20876
  * @param {string} [endDate]
@@ -20772,7 +21622,7 @@ export const AnalyticsApiFp = function (configuration?: Configuration) {
20772
21622
  },
20773
21623
  /**
20774
21624
  * Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetTopModulesByVolume`
20775
- * @summary Get top modules by event volume
21625
+ * @summary Get top modules by execution volume
20776
21626
  * @param {string} [startDate]
20777
21627
  * @param {string} [endDate]
20778
21628
  * @param {string} [gameServerId]
@@ -21094,7 +21944,7 @@ export const AnalyticsApiFactory = function (configuration?: Configuration, base
21094
21944
  .then((request) => request(axios, basePath));
21095
21945
  },
21096
21946
  /**
21097
- * Normalized 0-1 scores across five dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
21947
+ * Normalized 0-1 scores across six dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
21098
21948
  * @summary Get module health scores
21099
21949
  * @param {string} [startDate]
21100
21950
  * @param {string} [endDate]
@@ -21538,7 +22388,7 @@ export const AnalyticsApiFactory = function (configuration?: Configuration, base
21538
22388
  },
21539
22389
  /**
21540
22390
  * Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetTopModulesByVolume`
21541
- * @summary Get top modules by event volume
22391
+ * @summary Get top modules by execution volume
21542
22392
  * @param {string} [startDate]
21543
22393
  * @param {string} [endDate]
21544
22394
  * @param {string} [gameServerId]
@@ -21857,7 +22707,7 @@ export class AnalyticsApi extends BaseAPI {
21857
22707
  }
21858
22708
 
21859
22709
  /**
21860
- * Normalized 0-1 scores across five dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
22710
+ * Normalized 0-1 scores across six dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
21861
22711
  * @summary Get module health scores
21862
22712
  * @param {string} [startDate]
21863
22713
  * @param {string} [endDate]
@@ -22343,7 +23193,7 @@ export class AnalyticsApi extends BaseAPI {
22343
23193
 
22344
23194
  /**
22345
23195
  * Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetTopModulesByVolume`
22346
- * @summary Get top modules by event volume
23196
+ * @summary Get top modules by execution volume
22347
23197
  * @param {string} [startDate]
22348
23198
  * @param {string} [endDate]
22349
23199
  * @param {string} [gameServerId]
@@ -38644,7 +39494,7 @@ export const ShopListingApiFp = function (configuration?: Configuration) {
38644
39494
  */
38645
39495
  async shopListingControllerImportListings(
38646
39496
  options?: RawAxiosRequestConfig,
38647
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>> {
39497
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopImportResultDTOAPI>> {
38648
39498
  const localVarAxiosArgs = await localVarAxiosParamCreator.shopListingControllerImportListings(options);
38649
39499
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
38650
39500
  const localVarOperationServerBasePath =
@@ -38767,7 +39617,7 @@ export const ShopListingApiFactory = function (
38767
39617
  * @param {*} [options] Override http request option.
38768
39618
  * @throws {RequiredError}
38769
39619
  */
38770
- shopListingControllerImportListings(options?: RawAxiosRequestConfig): AxiosPromise<APIOutput> {
39620
+ shopListingControllerImportListings(options?: RawAxiosRequestConfig): AxiosPromise<ShopImportResultDTOAPI> {
38771
39621
  return localVarFp.shopListingControllerImportListings(options).then((request) => request(axios, basePath));
38772
39622
  },
38773
39623
  /**
@@ -39047,17 +39897,419 @@ export const ShopOrderApiAxiosParamCreator = function (configuration?: Configura
39047
39897
  };
39048
39898
  },
39049
39899
  /**
39050
- * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
39051
- * @summary Search orders
39052
- * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO
39900
+ * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
39901
+ * @summary Search orders
39902
+ * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO
39903
+ * @param {*} [options] Override http request option.
39904
+ * @throws {RequiredError}
39905
+ */
39906
+ shopOrderControllerSearch: async (
39907
+ shopOrderSearchInputDTO?: ShopOrderSearchInputDTO,
39908
+ options: RawAxiosRequestConfig = {},
39909
+ ): Promise<RequestArgs> => {
39910
+ const localVarPath = `/shop/order/search`;
39911
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39912
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39913
+ let baseOptions;
39914
+ if (configuration) {
39915
+ baseOptions = configuration.baseOptions;
39916
+ }
39917
+
39918
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
39919
+ const localVarHeaderParameter = {} as any;
39920
+ const localVarQueryParameter = {} as any;
39921
+
39922
+ // authentication domainAuth required
39923
+
39924
+ localVarHeaderParameter['Content-Type'] = 'application/json';
39925
+
39926
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39927
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39928
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
39929
+ localVarRequestOptions.data = serializeDataIfNeeded(
39930
+ shopOrderSearchInputDTO,
39931
+ localVarRequestOptions,
39932
+ configuration,
39933
+ );
39934
+
39935
+ return {
39936
+ url: toPathString(localVarUrlObj),
39937
+ options: localVarRequestOptions,
39938
+ };
39939
+ },
39940
+ };
39941
+ };
39942
+
39943
+ /**
39944
+ * ShopOrderApi - functional programming interface
39945
+ * @export
39946
+ */
39947
+ export const ShopOrderApiFp = function (configuration?: Configuration) {
39948
+ const localVarAxiosParamCreator = ShopOrderApiAxiosParamCreator(configuration);
39949
+ return {
39950
+ /**
39951
+ * <br> OperationId: `ShopOrderControllerCancel`
39952
+ * @summary Cancel
39953
+ * @param {string} id
39954
+ * @param {*} [options] Override http request option.
39955
+ * @throws {RequiredError}
39956
+ */
39957
+ async shopOrderControllerCancel(
39958
+ id: string,
39959
+ options?: RawAxiosRequestConfig,
39960
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputDTOAPI>> {
39961
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerCancel(id, options);
39962
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39963
+ const localVarOperationServerBasePath =
39964
+ operationServerMap['ShopOrderApi.shopOrderControllerCancel']?.[localVarOperationServerIndex]?.url;
39965
+ return (axios, basePath) =>
39966
+ createRequestFunction(
39967
+ localVarAxiosArgs,
39968
+ globalAxios,
39969
+ BASE_PATH,
39970
+ configuration,
39971
+ )(axios, localVarOperationServerBasePath || basePath);
39972
+ },
39973
+ /**
39974
+ * Claiming an order will mark it as completed and give the user the item in-game<br> OperationId: `ShopOrderControllerClaim`
39975
+ * @summary Claim an order
39976
+ * @param {string} id
39977
+ * @param {*} [options] Override http request option.
39978
+ * @throws {RequiredError}
39979
+ */
39980
+ async shopOrderControllerClaim(
39981
+ id: string,
39982
+ options?: RawAxiosRequestConfig,
39983
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputDTOAPI>> {
39984
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerClaim(id, options);
39985
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39986
+ const localVarOperationServerBasePath =
39987
+ operationServerMap['ShopOrderApi.shopOrderControllerClaim']?.[localVarOperationServerIndex]?.url;
39988
+ return (axios, basePath) =>
39989
+ createRequestFunction(
39990
+ localVarAxiosArgs,
39991
+ globalAxios,
39992
+ BASE_PATH,
39993
+ configuration,
39994
+ )(axios, localVarOperationServerBasePath || basePath);
39995
+ },
39996
+ /**
39997
+ * <br> OperationId: `ShopOrderControllerCreate`
39998
+ * @summary Create
39999
+ * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO
40000
+ * @param {*} [options] Override http request option.
40001
+ * @throws {RequiredError}
40002
+ */
40003
+ async shopOrderControllerCreate(
40004
+ shopOrderCreateDTO?: ShopOrderCreateDTO,
40005
+ options?: RawAxiosRequestConfig,
40006
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputDTOAPI>> {
40007
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerCreate(shopOrderCreateDTO, options);
40008
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
40009
+ const localVarOperationServerBasePath =
40010
+ operationServerMap['ShopOrderApi.shopOrderControllerCreate']?.[localVarOperationServerIndex]?.url;
40011
+ return (axios, basePath) =>
40012
+ createRequestFunction(
40013
+ localVarAxiosArgs,
40014
+ globalAxios,
40015
+ BASE_PATH,
40016
+ configuration,
40017
+ )(axios, localVarOperationServerBasePath || basePath);
40018
+ },
40019
+ /**
40020
+ * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order.<br> OperationId: `ShopOrderControllerGetOne`
40021
+ * @summary Get order by ID
40022
+ * @param {string} id
40023
+ * @param {*} [options] Override http request option.
40024
+ * @throws {RequiredError}
40025
+ */
40026
+ async shopOrderControllerGetOne(
40027
+ id: string,
40028
+ options?: RawAxiosRequestConfig,
40029
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputDTOAPI>> {
40030
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerGetOne(id, options);
40031
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
40032
+ const localVarOperationServerBasePath =
40033
+ operationServerMap['ShopOrderApi.shopOrderControllerGetOne']?.[localVarOperationServerIndex]?.url;
40034
+ return (axios, basePath) =>
40035
+ createRequestFunction(
40036
+ localVarAxiosArgs,
40037
+ globalAxios,
40038
+ BASE_PATH,
40039
+ configuration,
40040
+ )(axios, localVarOperationServerBasePath || basePath);
40041
+ },
40042
+ /**
40043
+ * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
40044
+ * @summary Search orders
40045
+ * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO
40046
+ * @param {*} [options] Override http request option.
40047
+ * @throws {RequiredError}
40048
+ */
40049
+ async shopOrderControllerSearch(
40050
+ shopOrderSearchInputDTO?: ShopOrderSearchInputDTO,
40051
+ options?: RawAxiosRequestConfig,
40052
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputArrayDTOAPI>> {
40053
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerSearch(
40054
+ shopOrderSearchInputDTO,
40055
+ options,
40056
+ );
40057
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
40058
+ const localVarOperationServerBasePath =
40059
+ operationServerMap['ShopOrderApi.shopOrderControllerSearch']?.[localVarOperationServerIndex]?.url;
40060
+ return (axios, basePath) =>
40061
+ createRequestFunction(
40062
+ localVarAxiosArgs,
40063
+ globalAxios,
40064
+ BASE_PATH,
40065
+ configuration,
40066
+ )(axios, localVarOperationServerBasePath || basePath);
40067
+ },
40068
+ };
40069
+ };
40070
+
40071
+ /**
40072
+ * ShopOrderApi - factory interface
40073
+ * @export
40074
+ */
40075
+ export const ShopOrderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
40076
+ const localVarFp = ShopOrderApiFp(configuration);
40077
+ return {
40078
+ /**
40079
+ * <br> OperationId: `ShopOrderControllerCancel`
40080
+ * @summary Cancel
40081
+ * @param {string} id
40082
+ * @param {*} [options] Override http request option.
40083
+ * @throws {RequiredError}
40084
+ */
40085
+ shopOrderControllerCancel(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ShopOrderOutputDTOAPI> {
40086
+ return localVarFp.shopOrderControllerCancel(id, options).then((request) => request(axios, basePath));
40087
+ },
40088
+ /**
40089
+ * Claiming an order will mark it as completed and give the user the item in-game<br> OperationId: `ShopOrderControllerClaim`
40090
+ * @summary Claim an order
40091
+ * @param {string} id
40092
+ * @param {*} [options] Override http request option.
40093
+ * @throws {RequiredError}
40094
+ */
40095
+ shopOrderControllerClaim(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ShopOrderOutputDTOAPI> {
40096
+ return localVarFp.shopOrderControllerClaim(id, options).then((request) => request(axios, basePath));
40097
+ },
40098
+ /**
40099
+ * <br> OperationId: `ShopOrderControllerCreate`
40100
+ * @summary Create
40101
+ * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO
40102
+ * @param {*} [options] Override http request option.
40103
+ * @throws {RequiredError}
40104
+ */
40105
+ shopOrderControllerCreate(
40106
+ shopOrderCreateDTO?: ShopOrderCreateDTO,
40107
+ options?: RawAxiosRequestConfig,
40108
+ ): AxiosPromise<ShopOrderOutputDTOAPI> {
40109
+ return localVarFp
40110
+ .shopOrderControllerCreate(shopOrderCreateDTO, options)
40111
+ .then((request) => request(axios, basePath));
40112
+ },
40113
+ /**
40114
+ * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order.<br> OperationId: `ShopOrderControllerGetOne`
40115
+ * @summary Get order by ID
40116
+ * @param {string} id
40117
+ * @param {*} [options] Override http request option.
40118
+ * @throws {RequiredError}
40119
+ */
40120
+ shopOrderControllerGetOne(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ShopOrderOutputDTOAPI> {
40121
+ return localVarFp.shopOrderControllerGetOne(id, options).then((request) => request(axios, basePath));
40122
+ },
40123
+ /**
40124
+ * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
40125
+ * @summary Search orders
40126
+ * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO
40127
+ * @param {*} [options] Override http request option.
40128
+ * @throws {RequiredError}
40129
+ */
40130
+ shopOrderControllerSearch(
40131
+ shopOrderSearchInputDTO?: ShopOrderSearchInputDTO,
40132
+ options?: RawAxiosRequestConfig,
40133
+ ): AxiosPromise<ShopOrderOutputArrayDTOAPI> {
40134
+ return localVarFp
40135
+ .shopOrderControllerSearch(shopOrderSearchInputDTO, options)
40136
+ .then((request) => request(axios, basePath));
40137
+ },
40138
+ };
40139
+ };
40140
+
40141
+ /**
40142
+ * ShopOrderApi - object-oriented interface
40143
+ * @export
40144
+ * @class ShopOrderApi
40145
+ * @extends {BaseAPI}
40146
+ */
40147
+ export class ShopOrderApi extends BaseAPI {
40148
+ /**
40149
+ * <br> OperationId: `ShopOrderControllerCancel`
40150
+ * @summary Cancel
40151
+ * @param {string} id
40152
+ * @param {*} [options] Override http request option.
40153
+ * @throws {RequiredError}
40154
+ * @memberof ShopOrderApi
40155
+ */
40156
+ public shopOrderControllerCancel(id: string, options?: RawAxiosRequestConfig) {
40157
+ return ShopOrderApiFp(this.configuration)
40158
+ .shopOrderControllerCancel(id, options)
40159
+ .then((request) => request(this.axios, this.basePath));
40160
+ }
40161
+
40162
+ /**
40163
+ * Claiming an order will mark it as completed and give the user the item in-game<br> OperationId: `ShopOrderControllerClaim`
40164
+ * @summary Claim an order
40165
+ * @param {string} id
40166
+ * @param {*} [options] Override http request option.
40167
+ * @throws {RequiredError}
40168
+ * @memberof ShopOrderApi
40169
+ */
40170
+ public shopOrderControllerClaim(id: string, options?: RawAxiosRequestConfig) {
40171
+ return ShopOrderApiFp(this.configuration)
40172
+ .shopOrderControllerClaim(id, options)
40173
+ .then((request) => request(this.axios, this.basePath));
40174
+ }
40175
+
40176
+ /**
40177
+ * <br> OperationId: `ShopOrderControllerCreate`
40178
+ * @summary Create
40179
+ * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO
40180
+ * @param {*} [options] Override http request option.
40181
+ * @throws {RequiredError}
40182
+ * @memberof ShopOrderApi
40183
+ */
40184
+ public shopOrderControllerCreate(shopOrderCreateDTO?: ShopOrderCreateDTO, options?: RawAxiosRequestConfig) {
40185
+ return ShopOrderApiFp(this.configuration)
40186
+ .shopOrderControllerCreate(shopOrderCreateDTO, options)
40187
+ .then((request) => request(this.axios, this.basePath));
40188
+ }
40189
+
40190
+ /**
40191
+ * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order.<br> OperationId: `ShopOrderControllerGetOne`
40192
+ * @summary Get order by ID
40193
+ * @param {string} id
40194
+ * @param {*} [options] Override http request option.
40195
+ * @throws {RequiredError}
40196
+ * @memberof ShopOrderApi
40197
+ */
40198
+ public shopOrderControllerGetOne(id: string, options?: RawAxiosRequestConfig) {
40199
+ return ShopOrderApiFp(this.configuration)
40200
+ .shopOrderControllerGetOne(id, options)
40201
+ .then((request) => request(this.axios, this.basePath));
40202
+ }
40203
+
40204
+ /**
40205
+ * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
40206
+ * @summary Search orders
40207
+ * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO
40208
+ * @param {*} [options] Override http request option.
40209
+ * @throws {RequiredError}
40210
+ * @memberof ShopOrderApi
40211
+ */
40212
+ public shopOrderControllerSearch(shopOrderSearchInputDTO?: ShopOrderSearchInputDTO, options?: RawAxiosRequestConfig) {
40213
+ return ShopOrderApiFp(this.configuration)
40214
+ .shopOrderControllerSearch(shopOrderSearchInputDTO, options)
40215
+ .then((request) => request(this.axios, this.basePath));
40216
+ }
40217
+ }
40218
+
40219
+ /**
40220
+ * StorefrontConfigApi - axios parameter creator
40221
+ * @export
40222
+ */
40223
+ export const StorefrontConfigApiAxiosParamCreator = function (configuration?: Configuration) {
40224
+ return {
40225
+ /**
40226
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
40227
+ * @summary Get effective config
40228
+ * @param {string} gameServerId
40229
+ * @param {*} [options] Override http request option.
40230
+ * @throws {RequiredError}
40231
+ */
40232
+ storefrontConfigControllerGetEffectiveConfig: async (
40233
+ gameServerId: string,
40234
+ options: RawAxiosRequestConfig = {},
40235
+ ): Promise<RequestArgs> => {
40236
+ // verify required parameter 'gameServerId' is not null or undefined
40237
+ assertParamExists('storefrontConfigControllerGetEffectiveConfig', 'gameServerId', gameServerId);
40238
+ const localVarPath = `/gameserver/{gameServerId}/storefront-config`.replace(
40239
+ `{${'gameServerId'}}`,
40240
+ encodeURIComponent(String(gameServerId)),
40241
+ );
40242
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
40243
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40244
+ let baseOptions;
40245
+ if (configuration) {
40246
+ baseOptions = configuration.baseOptions;
40247
+ }
40248
+
40249
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
40250
+ const localVarHeaderParameter = {} as any;
40251
+ const localVarQueryParameter = {} as any;
40252
+
40253
+ // authentication domainAuth required
40254
+
40255
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
40256
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40257
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
40258
+
40259
+ return {
40260
+ url: toPathString(localVarUrlObj),
40261
+ options: localVarRequestOptions,
40262
+ };
40263
+ },
40264
+ /**
40265
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
40266
+ * @summary List templates
40267
+ * @param {*} [options] Override http request option.
40268
+ * @throws {RequiredError}
40269
+ */
40270
+ storefrontConfigControllerListTemplates: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
40271
+ const localVarPath = `/storefront/templates`;
40272
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
40273
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40274
+ let baseOptions;
40275
+ if (configuration) {
40276
+ baseOptions = configuration.baseOptions;
40277
+ }
40278
+
40279
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
40280
+ const localVarHeaderParameter = {} as any;
40281
+ const localVarQueryParameter = {} as any;
40282
+
40283
+ // authentication domainAuth required
40284
+
40285
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
40286
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40287
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
40288
+
40289
+ return {
40290
+ url: toPathString(localVarUrlObj),
40291
+ options: localVarRequestOptions,
40292
+ };
40293
+ },
40294
+ /**
40295
+ * Set the storefront configuration for a game server. Validates the template id and values against the template schema. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerSetConfig`
40296
+ * @summary Set config
40297
+ * @param {string} gameServerId
40298
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
39053
40299
  * @param {*} [options] Override http request option.
39054
40300
  * @throws {RequiredError}
39055
40301
  */
39056
- shopOrderControllerSearch: async (
39057
- shopOrderSearchInputDTO?: ShopOrderSearchInputDTO,
40302
+ storefrontConfigControllerSetConfig: async (
40303
+ gameServerId: string,
40304
+ storefrontConfigUpsertBody?: StorefrontConfigUpsertBody,
39058
40305
  options: RawAxiosRequestConfig = {},
39059
40306
  ): Promise<RequestArgs> => {
39060
- const localVarPath = `/shop/order/search`;
40307
+ // verify required parameter 'gameServerId' is not null or undefined
40308
+ assertParamExists('storefrontConfigControllerSetConfig', 'gameServerId', gameServerId);
40309
+ const localVarPath = `/gameserver/{gameServerId}/storefront-config`.replace(
40310
+ `{${'gameServerId'}}`,
40311
+ encodeURIComponent(String(gameServerId)),
40312
+ );
39061
40313
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
39062
40314
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39063
40315
  let baseOptions;
@@ -39065,7 +40317,7 @@ export const ShopOrderApiAxiosParamCreator = function (configuration?: Configura
39065
40317
  baseOptions = configuration.baseOptions;
39066
40318
  }
39067
40319
 
39068
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
40320
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
39069
40321
  const localVarHeaderParameter = {} as any;
39070
40322
  const localVarQueryParameter = {} as any;
39071
40323
 
@@ -39077,7 +40329,7 @@ export const ShopOrderApiAxiosParamCreator = function (configuration?: Configura
39077
40329
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39078
40330
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
39079
40331
  localVarRequestOptions.data = serializeDataIfNeeded(
39080
- shopOrderSearchInputDTO,
40332
+ storefrontConfigUpsertBody,
39081
40333
  localVarRequestOptions,
39082
40334
  configuration,
39083
40335
  );
@@ -39091,73 +40343,32 @@ export const ShopOrderApiAxiosParamCreator = function (configuration?: Configura
39091
40343
  };
39092
40344
 
39093
40345
  /**
39094
- * ShopOrderApi - functional programming interface
40346
+ * StorefrontConfigApi - functional programming interface
39095
40347
  * @export
39096
40348
  */
39097
- export const ShopOrderApiFp = function (configuration?: Configuration) {
39098
- const localVarAxiosParamCreator = ShopOrderApiAxiosParamCreator(configuration);
40349
+ export const StorefrontConfigApiFp = function (configuration?: Configuration) {
40350
+ const localVarAxiosParamCreator = StorefrontConfigApiAxiosParamCreator(configuration);
39099
40351
  return {
39100
40352
  /**
39101
- * <br> OperationId: `ShopOrderControllerCancel`
39102
- * @summary Cancel
39103
- * @param {string} id
39104
- * @param {*} [options] Override http request option.
39105
- * @throws {RequiredError}
39106
- */
39107
- async shopOrderControllerCancel(
39108
- id: string,
39109
- options?: RawAxiosRequestConfig,
39110
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputDTOAPI>> {
39111
- const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerCancel(id, options);
39112
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39113
- const localVarOperationServerBasePath =
39114
- operationServerMap['ShopOrderApi.shopOrderControllerCancel']?.[localVarOperationServerIndex]?.url;
39115
- return (axios, basePath) =>
39116
- createRequestFunction(
39117
- localVarAxiosArgs,
39118
- globalAxios,
39119
- BASE_PATH,
39120
- configuration,
39121
- )(axios, localVarOperationServerBasePath || basePath);
39122
- },
39123
- /**
39124
- * Claiming an order will mark it as completed and give the user the item in-game<br> OperationId: `ShopOrderControllerClaim`
39125
- * @summary Claim an order
39126
- * @param {string} id
39127
- * @param {*} [options] Override http request option.
39128
- * @throws {RequiredError}
39129
- */
39130
- async shopOrderControllerClaim(
39131
- id: string,
39132
- options?: RawAxiosRequestConfig,
39133
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputDTOAPI>> {
39134
- const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerClaim(id, options);
39135
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39136
- const localVarOperationServerBasePath =
39137
- operationServerMap['ShopOrderApi.shopOrderControllerClaim']?.[localVarOperationServerIndex]?.url;
39138
- return (axios, basePath) =>
39139
- createRequestFunction(
39140
- localVarAxiosArgs,
39141
- globalAxios,
39142
- BASE_PATH,
39143
- configuration,
39144
- )(axios, localVarOperationServerBasePath || basePath);
39145
- },
39146
- /**
39147
- * <br> OperationId: `ShopOrderControllerCreate`
39148
- * @summary Create
39149
- * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO
40353
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
40354
+ * @summary Get effective config
40355
+ * @param {string} gameServerId
39150
40356
  * @param {*} [options] Override http request option.
39151
40357
  * @throws {RequiredError}
39152
40358
  */
39153
- async shopOrderControllerCreate(
39154
- shopOrderCreateDTO?: ShopOrderCreateDTO,
40359
+ async storefrontConfigControllerGetEffectiveConfig(
40360
+ gameServerId: string,
39155
40361
  options?: RawAxiosRequestConfig,
39156
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputDTOAPI>> {
39157
- const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerCreate(shopOrderCreateDTO, options);
40362
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EffectiveStorefrontConfigOutputDTOAPI>> {
40363
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storefrontConfigControllerGetEffectiveConfig(
40364
+ gameServerId,
40365
+ options,
40366
+ );
39158
40367
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39159
40368
  const localVarOperationServerBasePath =
39160
- operationServerMap['ShopOrderApi.shopOrderControllerCreate']?.[localVarOperationServerIndex]?.url;
40369
+ operationServerMap['StorefrontConfigApi.storefrontConfigControllerGetEffectiveConfig']?.[
40370
+ localVarOperationServerIndex
40371
+ ]?.url;
39161
40372
  return (axios, basePath) =>
39162
40373
  createRequestFunction(
39163
40374
  localVarAxiosArgs,
@@ -39167,20 +40378,20 @@ export const ShopOrderApiFp = function (configuration?: Configuration) {
39167
40378
  )(axios, localVarOperationServerBasePath || basePath);
39168
40379
  },
39169
40380
  /**
39170
- * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order.<br> OperationId: `ShopOrderControllerGetOne`
39171
- * @summary Get order by ID
39172
- * @param {string} id
40381
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
40382
+ * @summary List templates
39173
40383
  * @param {*} [options] Override http request option.
39174
40384
  * @throws {RequiredError}
39175
40385
  */
39176
- async shopOrderControllerGetOne(
39177
- id: string,
40386
+ async storefrontConfigControllerListTemplates(
39178
40387
  options?: RawAxiosRequestConfig,
39179
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputDTOAPI>> {
39180
- const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerGetOne(id, options);
40388
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StorefrontTemplateOutputArrayDTOAPI>> {
40389
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storefrontConfigControllerListTemplates(options);
39181
40390
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39182
40391
  const localVarOperationServerBasePath =
39183
- operationServerMap['ShopOrderApi.shopOrderControllerGetOne']?.[localVarOperationServerIndex]?.url;
40392
+ operationServerMap['StorefrontConfigApi.storefrontConfigControllerListTemplates']?.[
40393
+ localVarOperationServerIndex
40394
+ ]?.url;
39184
40395
  return (axios, basePath) =>
39185
40396
  createRequestFunction(
39186
40397
  localVarAxiosArgs,
@@ -39190,23 +40401,27 @@ export const ShopOrderApiFp = function (configuration?: Configuration) {
39190
40401
  )(axios, localVarOperationServerBasePath || basePath);
39191
40402
  },
39192
40403
  /**
39193
- * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
39194
- * @summary Search orders
39195
- * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO
40404
+ * Set the storefront configuration for a game server. Validates the template id and values against the template schema. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerSetConfig`
40405
+ * @summary Set config
40406
+ * @param {string} gameServerId
40407
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
39196
40408
  * @param {*} [options] Override http request option.
39197
40409
  * @throws {RequiredError}
39198
40410
  */
39199
- async shopOrderControllerSearch(
39200
- shopOrderSearchInputDTO?: ShopOrderSearchInputDTO,
40411
+ async storefrontConfigControllerSetConfig(
40412
+ gameServerId: string,
40413
+ storefrontConfigUpsertBody?: StorefrontConfigUpsertBody,
39201
40414
  options?: RawAxiosRequestConfig,
39202
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopOrderOutputArrayDTOAPI>> {
39203
- const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerSearch(
39204
- shopOrderSearchInputDTO,
40415
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EffectiveStorefrontConfigOutputDTOAPI>> {
40416
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storefrontConfigControllerSetConfig(
40417
+ gameServerId,
40418
+ storefrontConfigUpsertBody,
39205
40419
  options,
39206
40420
  );
39207
40421
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39208
40422
  const localVarOperationServerBasePath =
39209
- operationServerMap['ShopOrderApi.shopOrderControllerSearch']?.[localVarOperationServerIndex]?.url;
40423
+ operationServerMap['StorefrontConfigApi.storefrontConfigControllerSetConfig']?.[localVarOperationServerIndex]
40424
+ ?.url;
39210
40425
  return (axios, basePath) =>
39211
40426
  createRequestFunction(
39212
40427
  localVarAxiosArgs,
@@ -39219,149 +40434,112 @@ export const ShopOrderApiFp = function (configuration?: Configuration) {
39219
40434
  };
39220
40435
 
39221
40436
  /**
39222
- * ShopOrderApi - factory interface
40437
+ * StorefrontConfigApi - factory interface
39223
40438
  * @export
39224
40439
  */
39225
- export const ShopOrderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
39226
- const localVarFp = ShopOrderApiFp(configuration);
40440
+ export const StorefrontConfigApiFactory = function (
40441
+ configuration?: Configuration,
40442
+ basePath?: string,
40443
+ axios?: AxiosInstance,
40444
+ ) {
40445
+ const localVarFp = StorefrontConfigApiFp(configuration);
39227
40446
  return {
39228
40447
  /**
39229
- * <br> OperationId: `ShopOrderControllerCancel`
39230
- * @summary Cancel
39231
- * @param {string} id
39232
- * @param {*} [options] Override http request option.
39233
- * @throws {RequiredError}
39234
- */
39235
- shopOrderControllerCancel(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ShopOrderOutputDTOAPI> {
39236
- return localVarFp.shopOrderControllerCancel(id, options).then((request) => request(axios, basePath));
39237
- },
39238
- /**
39239
- * Claiming an order will mark it as completed and give the user the item in-game<br> OperationId: `ShopOrderControllerClaim`
39240
- * @summary Claim an order
39241
- * @param {string} id
39242
- * @param {*} [options] Override http request option.
39243
- * @throws {RequiredError}
39244
- */
39245
- shopOrderControllerClaim(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ShopOrderOutputDTOAPI> {
39246
- return localVarFp.shopOrderControllerClaim(id, options).then((request) => request(axios, basePath));
39247
- },
39248
- /**
39249
- * <br> OperationId: `ShopOrderControllerCreate`
39250
- * @summary Create
39251
- * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO
40448
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
40449
+ * @summary Get effective config
40450
+ * @param {string} gameServerId
39252
40451
  * @param {*} [options] Override http request option.
39253
40452
  * @throws {RequiredError}
39254
40453
  */
39255
- shopOrderControllerCreate(
39256
- shopOrderCreateDTO?: ShopOrderCreateDTO,
40454
+ storefrontConfigControllerGetEffectiveConfig(
40455
+ gameServerId: string,
39257
40456
  options?: RawAxiosRequestConfig,
39258
- ): AxiosPromise<ShopOrderOutputDTOAPI> {
40457
+ ): AxiosPromise<EffectiveStorefrontConfigOutputDTOAPI> {
39259
40458
  return localVarFp
39260
- .shopOrderControllerCreate(shopOrderCreateDTO, options)
40459
+ .storefrontConfigControllerGetEffectiveConfig(gameServerId, options)
39261
40460
  .then((request) => request(axios, basePath));
39262
40461
  },
39263
40462
  /**
39264
- * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order.<br> OperationId: `ShopOrderControllerGetOne`
39265
- * @summary Get order by ID
39266
- * @param {string} id
40463
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
40464
+ * @summary List templates
39267
40465
  * @param {*} [options] Override http request option.
39268
40466
  * @throws {RequiredError}
39269
40467
  */
39270
- shopOrderControllerGetOne(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ShopOrderOutputDTOAPI> {
39271
- return localVarFp.shopOrderControllerGetOne(id, options).then((request) => request(axios, basePath));
40468
+ storefrontConfigControllerListTemplates(
40469
+ options?: RawAxiosRequestConfig,
40470
+ ): AxiosPromise<StorefrontTemplateOutputArrayDTOAPI> {
40471
+ return localVarFp.storefrontConfigControllerListTemplates(options).then((request) => request(axios, basePath));
39272
40472
  },
39273
40473
  /**
39274
- * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
39275
- * @summary Search orders
39276
- * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO
40474
+ * Set the storefront configuration for a game server. Validates the template id and values against the template schema. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerSetConfig`
40475
+ * @summary Set config
40476
+ * @param {string} gameServerId
40477
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
39277
40478
  * @param {*} [options] Override http request option.
39278
40479
  * @throws {RequiredError}
39279
40480
  */
39280
- shopOrderControllerSearch(
39281
- shopOrderSearchInputDTO?: ShopOrderSearchInputDTO,
40481
+ storefrontConfigControllerSetConfig(
40482
+ gameServerId: string,
40483
+ storefrontConfigUpsertBody?: StorefrontConfigUpsertBody,
39282
40484
  options?: RawAxiosRequestConfig,
39283
- ): AxiosPromise<ShopOrderOutputArrayDTOAPI> {
40485
+ ): AxiosPromise<EffectiveStorefrontConfigOutputDTOAPI> {
39284
40486
  return localVarFp
39285
- .shopOrderControllerSearch(shopOrderSearchInputDTO, options)
40487
+ .storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options)
39286
40488
  .then((request) => request(axios, basePath));
39287
40489
  },
39288
40490
  };
39289
40491
  };
39290
40492
 
39291
40493
  /**
39292
- * ShopOrderApi - object-oriented interface
40494
+ * StorefrontConfigApi - object-oriented interface
39293
40495
  * @export
39294
- * @class ShopOrderApi
40496
+ * @class StorefrontConfigApi
39295
40497
  * @extends {BaseAPI}
39296
40498
  */
39297
- export class ShopOrderApi extends BaseAPI {
40499
+ export class StorefrontConfigApi extends BaseAPI {
39298
40500
  /**
39299
- * <br> OperationId: `ShopOrderControllerCancel`
39300
- * @summary Cancel
39301
- * @param {string} id
39302
- * @param {*} [options] Override http request option.
39303
- * @throws {RequiredError}
39304
- * @memberof ShopOrderApi
39305
- */
39306
- public shopOrderControllerCancel(id: string, options?: RawAxiosRequestConfig) {
39307
- return ShopOrderApiFp(this.configuration)
39308
- .shopOrderControllerCancel(id, options)
39309
- .then((request) => request(this.axios, this.basePath));
39310
- }
39311
-
39312
- /**
39313
- * Claiming an order will mark it as completed and give the user the item in-game<br> OperationId: `ShopOrderControllerClaim`
39314
- * @summary Claim an order
39315
- * @param {string} id
39316
- * @param {*} [options] Override http request option.
39317
- * @throws {RequiredError}
39318
- * @memberof ShopOrderApi
39319
- */
39320
- public shopOrderControllerClaim(id: string, options?: RawAxiosRequestConfig) {
39321
- return ShopOrderApiFp(this.configuration)
39322
- .shopOrderControllerClaim(id, options)
39323
- .then((request) => request(this.axios, this.basePath));
39324
- }
39325
-
39326
- /**
39327
- * <br> OperationId: `ShopOrderControllerCreate`
39328
- * @summary Create
39329
- * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO
40501
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
40502
+ * @summary Get effective config
40503
+ * @param {string} gameServerId
39330
40504
  * @param {*} [options] Override http request option.
39331
40505
  * @throws {RequiredError}
39332
- * @memberof ShopOrderApi
40506
+ * @memberof StorefrontConfigApi
39333
40507
  */
39334
- public shopOrderControllerCreate(shopOrderCreateDTO?: ShopOrderCreateDTO, options?: RawAxiosRequestConfig) {
39335
- return ShopOrderApiFp(this.configuration)
39336
- .shopOrderControllerCreate(shopOrderCreateDTO, options)
40508
+ public storefrontConfigControllerGetEffectiveConfig(gameServerId: string, options?: RawAxiosRequestConfig) {
40509
+ return StorefrontConfigApiFp(this.configuration)
40510
+ .storefrontConfigControllerGetEffectiveConfig(gameServerId, options)
39337
40511
  .then((request) => request(this.axios, this.basePath));
39338
40512
  }
39339
40513
 
39340
40514
  /**
39341
- * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order.<br> OperationId: `ShopOrderControllerGetOne`
39342
- * @summary Get order by ID
39343
- * @param {string} id
40515
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
40516
+ * @summary List templates
39344
40517
  * @param {*} [options] Override http request option.
39345
40518
  * @throws {RequiredError}
39346
- * @memberof ShopOrderApi
40519
+ * @memberof StorefrontConfigApi
39347
40520
  */
39348
- public shopOrderControllerGetOne(id: string, options?: RawAxiosRequestConfig) {
39349
- return ShopOrderApiFp(this.configuration)
39350
- .shopOrderControllerGetOne(id, options)
40521
+ public storefrontConfigControllerListTemplates(options?: RawAxiosRequestConfig) {
40522
+ return StorefrontConfigApiFp(this.configuration)
40523
+ .storefrontConfigControllerListTemplates(options)
39351
40524
  .then((request) => request(this.axios, this.basePath));
39352
40525
  }
39353
40526
 
39354
40527
  /**
39355
- * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
39356
- * @summary Search orders
39357
- * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO
40528
+ * Set the storefront configuration for a game server. Validates the template id and values against the template schema. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerSetConfig`
40529
+ * @summary Set config
40530
+ * @param {string} gameServerId
40531
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
39358
40532
  * @param {*} [options] Override http request option.
39359
40533
  * @throws {RequiredError}
39360
- * @memberof ShopOrderApi
40534
+ * @memberof StorefrontConfigApi
39361
40535
  */
39362
- public shopOrderControllerSearch(shopOrderSearchInputDTO?: ShopOrderSearchInputDTO, options?: RawAxiosRequestConfig) {
39363
- return ShopOrderApiFp(this.configuration)
39364
- .shopOrderControllerSearch(shopOrderSearchInputDTO, options)
40536
+ public storefrontConfigControllerSetConfig(
40537
+ gameServerId: string,
40538
+ storefrontConfigUpsertBody?: StorefrontConfigUpsertBody,
40539
+ options?: RawAxiosRequestConfig,
40540
+ ) {
40541
+ return StorefrontConfigApiFp(this.configuration)
40542
+ .storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options)
39365
40543
  .then((request) => request(this.axios, this.basePath));
39366
40544
  }
39367
40545
  }
@@ -39949,6 +41127,33 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
39949
41127
  options: localVarRequestOptions,
39950
41128
  };
39951
41129
  },
41130
+ /**
41131
+ * Required permissions: `READ_USERS`<br> OperationId: `UserControllerCountBillableDashboardUsers`
41132
+ * @summary Count billable dashboard users
41133
+ * @param {*} [options] Override http request option.
41134
+ * @throws {RequiredError}
41135
+ */
41136
+ userControllerCountBillableDashboardUsers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41137
+ const localVarPath = `/user/count`;
41138
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41139
+ let baseOptions;
41140
+ if (configuration) {
41141
+ baseOptions = configuration.baseOptions;
41142
+ }
41143
+
41144
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
41145
+ const localVarHeaderParameter = {} as any;
41146
+ const localVarQueryParameter = {} as any;
41147
+
41148
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
41149
+ const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41150
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
41151
+
41152
+ return {
41153
+ url: toPathString(localVarUrlObj),
41154
+ options: localVarRequestOptions,
41155
+ };
41156
+ },
39952
41157
  /**
39953
41158
  * Required permissions: `MANAGE_USERS`<br> OperationId: `UserControllerCreate`
39954
41159
  * @summary Create
@@ -40455,6 +41660,27 @@ export const UserApiFp = function (configuration?: Configuration) {
40455
41660
  configuration,
40456
41661
  )(axios, localVarOperationServerBasePath || basePath);
40457
41662
  },
41663
+ /**
41664
+ * Required permissions: `READ_USERS`<br> OperationId: `UserControllerCountBillableDashboardUsers`
41665
+ * @summary Count billable dashboard users
41666
+ * @param {*} [options] Override http request option.
41667
+ * @throws {RequiredError}
41668
+ */
41669
+ async userControllerCountBillableDashboardUsers(
41670
+ options?: RawAxiosRequestConfig,
41671
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserCountOutputDTOAPI>> {
41672
+ const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerCountBillableDashboardUsers(options);
41673
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
41674
+ const localVarOperationServerBasePath =
41675
+ operationServerMap['UserApi.userControllerCountBillableDashboardUsers']?.[localVarOperationServerIndex]?.url;
41676
+ return (axios, basePath) =>
41677
+ createRequestFunction(
41678
+ localVarAxiosArgs,
41679
+ globalAxios,
41680
+ BASE_PATH,
41681
+ configuration,
41682
+ )(axios, localVarOperationServerBasePath || basePath);
41683
+ },
40458
41684
  /**
40459
41685
  * Required permissions: `MANAGE_USERS`<br> OperationId: `UserControllerCreate`
40460
41686
  * @summary Create
@@ -40784,6 +42010,15 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
40784
42010
  .userControllerAssignRole(id, roleId, userRoleAssignChangeDTO, options)
40785
42011
  .then((request) => request(axios, basePath));
40786
42012
  },
42013
+ /**
42014
+ * Required permissions: `READ_USERS`<br> OperationId: `UserControllerCountBillableDashboardUsers`
42015
+ * @summary Count billable dashboard users
42016
+ * @param {*} [options] Override http request option.
42017
+ * @throws {RequiredError}
42018
+ */
42019
+ userControllerCountBillableDashboardUsers(options?: RawAxiosRequestConfig): AxiosPromise<UserCountOutputDTOAPI> {
42020
+ return localVarFp.userControllerCountBillableDashboardUsers(options).then((request) => request(axios, basePath));
42021
+ },
40787
42022
  /**
40788
42023
  * Required permissions: `MANAGE_USERS`<br> OperationId: `UserControllerCreate`
40789
42024
  * @summary Create
@@ -40962,6 +42197,19 @@ export class UserApi extends BaseAPI {
40962
42197
  .then((request) => request(this.axios, this.basePath));
40963
42198
  }
40964
42199
 
42200
+ /**
42201
+ * Required permissions: `READ_USERS`<br> OperationId: `UserControllerCountBillableDashboardUsers`
42202
+ * @summary Count billable dashboard users
42203
+ * @param {*} [options] Override http request option.
42204
+ * @throws {RequiredError}
42205
+ * @memberof UserApi
42206
+ */
42207
+ public userControllerCountBillableDashboardUsers(options?: RawAxiosRequestConfig) {
42208
+ return UserApiFp(this.configuration)
42209
+ .userControllerCountBillableDashboardUsers(options)
42210
+ .then((request) => request(this.axios, this.basePath));
42211
+ }
42212
+
40965
42213
  /**
40966
42214
  * Required permissions: `MANAGE_USERS`<br> OperationId: `UserControllerCreate`
40967
42215
  * @summary Create
@@ -41630,3 +42878,474 @@ export class VariableApi extends BaseAPI {
41630
42878
  .then((request) => request(this.axios, this.basePath));
41631
42879
  }
41632
42880
  }
42881
+
42882
+ /**
42883
+ * InviteLinkApi - axios parameter creator
42884
+ * @export
42885
+ */
42886
+ export const InviteLinkApiAxiosParamCreator = function (configuration?: Configuration) {
42887
+ return {
42888
+ /**
42889
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
42890
+ * @summary Create invite link
42891
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
42892
+ * @param {*} [options] Override http request option.
42893
+ * @throws {RequiredError}
42894
+ */
42895
+ inviteLinkControllerCreate: async (
42896
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
42897
+ options: RawAxiosRequestConfig = {},
42898
+ ): Promise<RequestArgs> => {
42899
+ const localVarPath = `/invite-link`;
42900
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42901
+ let baseOptions;
42902
+ if (configuration) {
42903
+ baseOptions = configuration.baseOptions;
42904
+ }
42905
+
42906
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
42907
+ const localVarHeaderParameter = {} as any;
42908
+ const localVarQueryParameter = {} as any;
42909
+
42910
+ // authentication domainAuth required
42911
+
42912
+ localVarHeaderParameter['Content-Type'] = 'application/json';
42913
+
42914
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42915
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42916
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
42917
+ localVarRequestOptions.data = serializeDataIfNeeded(
42918
+ inviteLinkCreateInputDTO,
42919
+ localVarRequestOptions,
42920
+ configuration,
42921
+ );
42922
+
42923
+ return {
42924
+ url: toPathString(localVarUrlObj),
42925
+ options: localVarRequestOptions,
42926
+ };
42927
+ },
42928
+ /**
42929
+ * <br> OperationId: `InviteLinkControllerPreview`
42930
+ * @summary Preview
42931
+ * @param {string} token
42932
+ * @param {*} [options] Override http request option.
42933
+ * @throws {RequiredError}
42934
+ */
42935
+ inviteLinkControllerPreview: async (token: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42936
+ assertParamExists('inviteLinkControllerPreview', 'token', token);
42937
+ const localVarPath = `/invite-link/redeem/{token}`.replace(`{${'token'}}`, encodeURIComponent(String(token)));
42938
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42939
+ let baseOptions;
42940
+ if (configuration) {
42941
+ baseOptions = configuration.baseOptions;
42942
+ }
42943
+
42944
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
42945
+ const localVarHeaderParameter = {} as any;
42946
+ const localVarQueryParameter = {} as any;
42947
+
42948
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42949
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42950
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
42951
+
42952
+ return {
42953
+ url: toPathString(localVarUrlObj),
42954
+ options: localVarRequestOptions,
42955
+ };
42956
+ },
42957
+ /**
42958
+ * <br> OperationId: `InviteLinkControllerRedeem`
42959
+ * @summary Redeem
42960
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
42961
+ * @param {*} [options] Override http request option.
42962
+ * @throws {RequiredError}
42963
+ */
42964
+ inviteLinkControllerRedeem: async (
42965
+ redeemInputDTO?: RedeemInputDTO,
42966
+ options: RawAxiosRequestConfig = {},
42967
+ ): Promise<RequestArgs> => {
42968
+ const localVarPath = `/invite-link/redeem`;
42969
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42970
+ let baseOptions;
42971
+ if (configuration) {
42972
+ baseOptions = configuration.baseOptions;
42973
+ }
42974
+
42975
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
42976
+ const localVarHeaderParameter = {} as any;
42977
+ const localVarQueryParameter = {} as any;
42978
+
42979
+ localVarHeaderParameter['Content-Type'] = 'application/json';
42980
+
42981
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42982
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42983
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
42984
+ localVarRequestOptions.data = serializeDataIfNeeded(redeemInputDTO, localVarRequestOptions, configuration);
42985
+
42986
+ return {
42987
+ url: toPathString(localVarUrlObj),
42988
+ options: localVarRequestOptions,
42989
+ };
42990
+ },
42991
+ /**
42992
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
42993
+ * @summary Revoke
42994
+ * @param {string} id
42995
+ * @param {*} [options] Override http request option.
42996
+ * @throws {RequiredError}
42997
+ */
42998
+ inviteLinkControllerRevoke: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42999
+ assertParamExists('inviteLinkControllerRevoke', 'id', id);
43000
+ const localVarPath = `/invite-link/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
43001
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43002
+ let baseOptions;
43003
+ if (configuration) {
43004
+ baseOptions = configuration.baseOptions;
43005
+ }
43006
+
43007
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
43008
+ const localVarHeaderParameter = {} as any;
43009
+ const localVarQueryParameter = {} as any;
43010
+
43011
+ // authentication domainAuth required
43012
+
43013
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43014
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43015
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
43016
+
43017
+ return {
43018
+ url: toPathString(localVarUrlObj),
43019
+ options: localVarRequestOptions,
43020
+ };
43021
+ },
43022
+ /**
43023
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
43024
+ * @summary Search
43025
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
43026
+ * @param {*} [options] Override http request option.
43027
+ * @throws {RequiredError}
43028
+ */
43029
+ inviteLinkControllerSearch: async (
43030
+ inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
43031
+ options: RawAxiosRequestConfig = {},
43032
+ ): Promise<RequestArgs> => {
43033
+ const localVarPath = `/invite-link/search`;
43034
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43035
+ let baseOptions;
43036
+ if (configuration) {
43037
+ baseOptions = configuration.baseOptions;
43038
+ }
43039
+
43040
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
43041
+ const localVarHeaderParameter = {} as any;
43042
+ const localVarQueryParameter = {} as any;
43043
+
43044
+ // authentication domainAuth required
43045
+
43046
+ localVarHeaderParameter['Content-Type'] = 'application/json';
43047
+
43048
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43049
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43050
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
43051
+ localVarRequestOptions.data = serializeDataIfNeeded(
43052
+ inviteLinkSearchInputDTO,
43053
+ localVarRequestOptions,
43054
+ configuration,
43055
+ );
43056
+
43057
+ return {
43058
+ url: toPathString(localVarUrlObj),
43059
+ options: localVarRequestOptions,
43060
+ };
43061
+ },
43062
+ };
43063
+ };
43064
+
43065
+ /**
43066
+ * InviteLinkApi - functional programming interface
43067
+ * @export
43068
+ */
43069
+ export const InviteLinkApiFp = function (configuration?: Configuration) {
43070
+ const localVarAxiosParamCreator = InviteLinkApiAxiosParamCreator(configuration);
43071
+ return {
43072
+ /**
43073
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
43074
+ * @summary Create invite link
43075
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
43076
+ * @param {*} [options] Override http request option.
43077
+ * @throws {RequiredError}
43078
+ */
43079
+ async inviteLinkControllerCreate(
43080
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
43081
+ options?: RawAxiosRequestConfig,
43082
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkCreateResultDTOAPI>> {
43083
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerCreate(
43084
+ inviteLinkCreateInputDTO,
43085
+ options,
43086
+ );
43087
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43088
+ const localVarOperationServerBasePath =
43089
+ operationServerMap['InviteLinkApi.inviteLinkControllerCreate']?.[localVarOperationServerIndex]?.url;
43090
+ return (axios, basePath) =>
43091
+ createRequestFunction(
43092
+ localVarAxiosArgs,
43093
+ globalAxios,
43094
+ BASE_PATH,
43095
+ configuration,
43096
+ )(axios, localVarOperationServerBasePath || basePath);
43097
+ },
43098
+ /**
43099
+ * <br> OperationId: `InviteLinkControllerPreview`
43100
+ * @summary Preview
43101
+ * @param {string} token
43102
+ * @param {*} [options] Override http request option.
43103
+ * @throws {RequiredError}
43104
+ */
43105
+ async inviteLinkControllerPreview(
43106
+ token: string,
43107
+ options?: RawAxiosRequestConfig,
43108
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkPreviewDTOAPI>> {
43109
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerPreview(token, options);
43110
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43111
+ const localVarOperationServerBasePath =
43112
+ operationServerMap['InviteLinkApi.inviteLinkControllerPreview']?.[localVarOperationServerIndex]?.url;
43113
+ return (axios, basePath) =>
43114
+ createRequestFunction(
43115
+ localVarAxiosArgs,
43116
+ globalAxios,
43117
+ BASE_PATH,
43118
+ configuration,
43119
+ )(axios, localVarOperationServerBasePath || basePath);
43120
+ },
43121
+ /**
43122
+ * <br> OperationId: `InviteLinkControllerRedeem`
43123
+ * @summary Redeem
43124
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
43125
+ * @param {*} [options] Override http request option.
43126
+ * @throws {RequiredError}
43127
+ */
43128
+ async inviteLinkControllerRedeem(
43129
+ redeemInputDTO?: RedeemInputDTO,
43130
+ options?: RawAxiosRequestConfig,
43131
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOutputWithRolesDTOAPI>> {
43132
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRedeem(redeemInputDTO, options);
43133
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43134
+ const localVarOperationServerBasePath =
43135
+ operationServerMap['InviteLinkApi.inviteLinkControllerRedeem']?.[localVarOperationServerIndex]?.url;
43136
+ return (axios, basePath) =>
43137
+ createRequestFunction(
43138
+ localVarAxiosArgs,
43139
+ globalAxios,
43140
+ BASE_PATH,
43141
+ configuration,
43142
+ )(axios, localVarOperationServerBasePath || basePath);
43143
+ },
43144
+ /**
43145
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
43146
+ * @summary Revoke
43147
+ * @param {string} id
43148
+ * @param {*} [options] Override http request option.
43149
+ * @throws {RequiredError}
43150
+ */
43151
+ async inviteLinkControllerRevoke(
43152
+ id: string,
43153
+ options?: RawAxiosRequestConfig,
43154
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>> {
43155
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRevoke(id, options);
43156
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43157
+ const localVarOperationServerBasePath =
43158
+ operationServerMap['InviteLinkApi.inviteLinkControllerRevoke']?.[localVarOperationServerIndex]?.url;
43159
+ return (axios, basePath) =>
43160
+ createRequestFunction(
43161
+ localVarAxiosArgs,
43162
+ globalAxios,
43163
+ BASE_PATH,
43164
+ configuration,
43165
+ )(axios, localVarOperationServerBasePath || basePath);
43166
+ },
43167
+ /**
43168
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
43169
+ * @summary Search
43170
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
43171
+ * @param {*} [options] Override http request option.
43172
+ * @throws {RequiredError}
43173
+ */
43174
+ async inviteLinkControllerSearch(
43175
+ inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
43176
+ options?: RawAxiosRequestConfig,
43177
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkOutputArrayDTOAPI>> {
43178
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerSearch(
43179
+ inviteLinkSearchInputDTO,
43180
+ options,
43181
+ );
43182
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43183
+ const localVarOperationServerBasePath =
43184
+ operationServerMap['InviteLinkApi.inviteLinkControllerSearch']?.[localVarOperationServerIndex]?.url;
43185
+ return (axios, basePath) =>
43186
+ createRequestFunction(
43187
+ localVarAxiosArgs,
43188
+ globalAxios,
43189
+ BASE_PATH,
43190
+ configuration,
43191
+ )(axios, localVarOperationServerBasePath || basePath);
43192
+ },
43193
+ };
43194
+ };
43195
+
43196
+ /**
43197
+ * InviteLinkApi - factory interface
43198
+ * @export
43199
+ */
43200
+ export const InviteLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
43201
+ const localVarFp = InviteLinkApiFp(configuration);
43202
+ return {
43203
+ /**
43204
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
43205
+ * @summary Create invite link
43206
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
43207
+ * @param {*} [options] Override http request option.
43208
+ * @throws {RequiredError}
43209
+ */
43210
+ inviteLinkControllerCreate(
43211
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
43212
+ options?: RawAxiosRequestConfig,
43213
+ ): AxiosPromise<InviteLinkCreateResultDTOAPI> {
43214
+ return localVarFp
43215
+ .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
43216
+ .then((request) => request(axios, basePath));
43217
+ },
43218
+ /**
43219
+ * <br> OperationId: `InviteLinkControllerPreview`
43220
+ * @summary Preview
43221
+ * @param {string} token
43222
+ * @param {*} [options] Override http request option.
43223
+ * @throws {RequiredError}
43224
+ */
43225
+ inviteLinkControllerPreview(token: string, options?: RawAxiosRequestConfig): AxiosPromise<InviteLinkPreviewDTOAPI> {
43226
+ return localVarFp.inviteLinkControllerPreview(token, options).then((request) => request(axios, basePath));
43227
+ },
43228
+ /**
43229
+ * <br> OperationId: `InviteLinkControllerRedeem`
43230
+ * @summary Redeem
43231
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
43232
+ * @param {*} [options] Override http request option.
43233
+ * @throws {RequiredError}
43234
+ */
43235
+ inviteLinkControllerRedeem(
43236
+ redeemInputDTO?: RedeemInputDTO,
43237
+ options?: RawAxiosRequestConfig,
43238
+ ): AxiosPromise<UserOutputWithRolesDTOAPI> {
43239
+ return localVarFp.inviteLinkControllerRedeem(redeemInputDTO, options).then((request) => request(axios, basePath));
43240
+ },
43241
+ /**
43242
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
43243
+ * @summary Revoke
43244
+ * @param {string} id
43245
+ * @param {*} [options] Override http request option.
43246
+ * @throws {RequiredError}
43247
+ */
43248
+ inviteLinkControllerRevoke(id: string, options?: RawAxiosRequestConfig): AxiosPromise<APIOutput> {
43249
+ return localVarFp.inviteLinkControllerRevoke(id, options).then((request) => request(axios, basePath));
43250
+ },
43251
+ /**
43252
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
43253
+ * @summary Search
43254
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
43255
+ * @param {*} [options] Override http request option.
43256
+ * @throws {RequiredError}
43257
+ */
43258
+ inviteLinkControllerSearch(
43259
+ inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
43260
+ options?: RawAxiosRequestConfig,
43261
+ ): AxiosPromise<InviteLinkOutputArrayDTOAPI> {
43262
+ return localVarFp
43263
+ .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
43264
+ .then((request) => request(axios, basePath));
43265
+ },
43266
+ };
43267
+ };
43268
+
43269
+ /**
43270
+ * InviteLinkApi - object-oriented interface
43271
+ * @export
43272
+ * @class InviteLinkApi
43273
+ * @extends {BaseAPI}
43274
+ */
43275
+ export class InviteLinkApi extends BaseAPI {
43276
+ /**
43277
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
43278
+ * @summary Create invite link
43279
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
43280
+ * @param {*} [options] Override http request option.
43281
+ * @throws {RequiredError}
43282
+ * @memberof InviteLinkApi
43283
+ */
43284
+ public inviteLinkControllerCreate(
43285
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
43286
+ options?: RawAxiosRequestConfig,
43287
+ ) {
43288
+ return InviteLinkApiFp(this.configuration)
43289
+ .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
43290
+ .then((request) => request(this.axios, this.basePath));
43291
+ }
43292
+
43293
+ /**
43294
+ * <br> OperationId: `InviteLinkControllerPreview`
43295
+ * @summary Preview
43296
+ * @param {string} token
43297
+ * @param {*} [options] Override http request option.
43298
+ * @throws {RequiredError}
43299
+ * @memberof InviteLinkApi
43300
+ */
43301
+ public inviteLinkControllerPreview(token: string, options?: RawAxiosRequestConfig) {
43302
+ return InviteLinkApiFp(this.configuration)
43303
+ .inviteLinkControllerPreview(token, options)
43304
+ .then((request) => request(this.axios, this.basePath));
43305
+ }
43306
+
43307
+ /**
43308
+ * <br> OperationId: `InviteLinkControllerRedeem`
43309
+ * @summary Redeem
43310
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
43311
+ * @param {*} [options] Override http request option.
43312
+ * @throws {RequiredError}
43313
+ * @memberof InviteLinkApi
43314
+ */
43315
+ public inviteLinkControllerRedeem(redeemInputDTO?: RedeemInputDTO, options?: RawAxiosRequestConfig) {
43316
+ return InviteLinkApiFp(this.configuration)
43317
+ .inviteLinkControllerRedeem(redeemInputDTO, options)
43318
+ .then((request) => request(this.axios, this.basePath));
43319
+ }
43320
+
43321
+ /**
43322
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
43323
+ * @summary Revoke
43324
+ * @param {string} id
43325
+ * @param {*} [options] Override http request option.
43326
+ * @throws {RequiredError}
43327
+ * @memberof InviteLinkApi
43328
+ */
43329
+ public inviteLinkControllerRevoke(id: string, options?: RawAxiosRequestConfig) {
43330
+ return InviteLinkApiFp(this.configuration)
43331
+ .inviteLinkControllerRevoke(id, options)
43332
+ .then((request) => request(this.axios, this.basePath));
43333
+ }
43334
+
43335
+ /**
43336
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
43337
+ * @summary Search
43338
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
43339
+ * @param {*} [options] Override http request option.
43340
+ * @throws {RequiredError}
43341
+ * @memberof InviteLinkApi
43342
+ */
43343
+ public inviteLinkControllerSearch(
43344
+ inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
43345
+ options?: RawAxiosRequestConfig,
43346
+ ) {
43347
+ return InviteLinkApiFp(this.configuration)
43348
+ .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
43349
+ .then((request) => request(this.axios, this.basePath));
43350
+ }
43351
+ }