@caraer/client 2.0.413 → 2.0.414

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -392,51 +392,6 @@ export interface AppBarVisibilityEntry {
392
392
  'objects'?: Array<string>;
393
393
  'suites'?: Array<string>;
394
394
  }
395
- /**
396
- * Current-period usage for one pricing line item
397
- */
398
- export interface AppBillingLineItemStatusDTO {
399
- 'name'?: string;
400
- 'label'?: string;
401
- 'countType'?: string;
402
- 'countingSource'?: string;
403
- 'usage'?: number;
404
- 'usageBreakdown'?: { [key: string]: number; };
405
- 'includedUnits'?: number;
406
- 'overageUnits'?: number;
407
- 'projectedCharge'?: number;
408
- 'status'?: string;
409
- 'note'?: string;
410
- }
411
- /**
412
- * UTC calendar-month billing window, with pro-rata fields when the subscription started mid-month
413
- */
414
- export interface AppBillingPeriodDTO {
415
- 'start'?: string;
416
- 'end'?: string;
417
- 'status'?: string;
418
- 'activeStart'?: string;
419
- 'daysActive'?: number;
420
- 'daysInPeriod'?: number;
421
- 'prorationFactor'?: number;
422
- }
423
- /**
424
- * Billing status for one or more app installations
425
- */
426
- export interface AppBillingStatusResponse {
427
- 'appUuid'?: string;
428
- 'appName'?: string;
429
- 'period'?: AppBillingPeriodDTO;
430
- 'installations'?: Array<AppInstallationBillingStatusDTO>;
431
- 'summary'?: AppBillingSummaryDTO;
432
- }
433
- /**
434
- * Rollup of installation billing status
435
- */
436
- export interface AppBillingSummaryDTO {
437
- 'installationCount'?: number;
438
- 'projectedRevenueTotal'?: number;
439
- }
440
395
  export interface AppConnectionStatusDTO {
441
396
  'id'?: string;
442
397
  'name'?: string;
@@ -505,10 +460,6 @@ export interface AppDTO {
505
460
  * Additional details and specifications about the application
506
461
  */
507
462
  'details'?: AppDetailsDTO;
508
- /**
509
- * Pricing information for the application
510
- */
511
- 'pricingPlans'?: Array<AppPricingDTO>;
512
463
  /**
513
464
  * App bars (location-specific configuration and actions)
514
465
  */
@@ -553,10 +504,6 @@ export interface AppDTO {
553
504
  * App job enqueue rate limit per minute per installation
554
505
  */
555
506
  'jobRateLimitPerMinute'?: number;
556
- /**
557
- * Whether failed webhook requests are considered billable for this app
558
- */
559
- 'billFailedWebhookRequests'?: boolean;
560
507
  /**
561
508
  * Publish and review state for the app in the marketplace (creator view)
562
509
  */
@@ -859,220 +806,9 @@ export interface AppInboundRouteDTO {
859
806
  'sharedSecret'?: string;
860
807
  'serverlessFunction'?: ServerlessFunctionRefDTO;
861
808
  }
862
- /**
863
- * Current-period billing status for one installation
864
- */
865
- export interface AppInstallationBillingStatusDTO {
866
- 'appUuid'?: string;
867
- 'appName'?: string;
868
- 'installationUuid'?: string;
869
- 'companyUuid'?: string;
870
- 'companyName'?: string;
871
- 'selectedPricingPlanUuid'?: string;
872
- 'selectedPricingPlanTitle'?: string;
873
- 'pricingType'?: string;
874
- 'billingCommitment'?: string;
875
- 'pendingPricingPlanUuid'?: string;
876
- 'pendingEffectiveAt'?: number;
877
- 'period'?: AppBillingPeriodDTO;
878
- 'lineItems'?: Array<AppBillingLineItemStatusDTO>;
879
- 'projectedTotal'?: number;
880
- 'subscription'?: AppSubscriptionDTO;
881
- }
882
- /**
883
- * Manual meter event for a billable line item
884
- */
885
- export interface AppMeterEventRequest {
886
- 'lineItemName': string;
887
- /**
888
- * Positive unit count; defaults to 1
889
- */
890
- 'quantity'?: number;
891
- 'idempotencyKey'?: string;
892
- /**
893
- * ISO-8601 timestamp; defaults to now
894
- */
895
- 'occurredAt'?: string;
896
- 'metadata'?: { [key: string]: any | null; };
897
- }
898
- /**
899
- * Recorded meter event
900
- */
901
- export interface AppMeterEventResponse {
902
- 'eventUuid'?: string;
903
- 'lineItemName'?: string;
904
- 'quantity'?: number;
905
- 'periodUsageAfter'?: number;
906
- }
907
809
  export interface AppOAuthStartResponseDTO {
908
810
  'authorizeUrl'?: string;
909
811
  }
910
- /**
911
- * Data transfer object for app pricing (flat or tiered)
912
- */
913
- export interface AppPricingDTO {
914
- /**
915
- * Unique identifier for the entity
916
- */
917
- 'uuid': string;
918
- /**
919
- * The name of the entity
920
- */
921
- 'name': string;
922
- /**
923
- * Display label for the entity, can be different from name
924
- */
925
- 'label'?: string;
926
- /**
927
- * Unix timestamp when the entity was created
928
- */
929
- 'createdAt'?: number;
930
- /**
931
- * Identifier of the user who created the entity
932
- */
933
- 'createdBy'?: ModelRecord;
934
- /**
935
- * Unix timestamp when the entity was last updated
936
- */
937
- 'updatedAt'?: number;
938
- /**
939
- * Identifier of the user who last updated the entity
940
- */
941
- 'updatedBy'?: ModelRecord;
942
- /**
943
- * Unix timestamp when the entity was deleted (null if not deleted)
944
- */
945
- 'deletedAt'?: number;
946
- /**
947
- * Identifier of the user who deleted the entity
948
- */
949
- 'deletedBy'?: ModelRecord;
950
- /**
951
- * Index number for ordering entities
952
- */
953
- 'index'?: number;
954
- /**
955
- * Pricing title
956
- */
957
- 'title'?: string;
958
- /**
959
- * Pricing description
960
- */
961
- 'description'?: string;
962
- /**
963
- * Pricing type: TIERED or FLAT
964
- */
965
- 'pricingType'?: string;
966
- /**
967
- * Price per unit (FLAT, e.g. 10.00)
968
- */
969
- 'pricePerUnit'?: string;
970
- /**
971
- * Unit label (FLAT, e.g. document)
972
- */
973
- 'unit'?: string;
974
- /**
975
- * Free units included (FLAT, e.g. 100)
976
- */
977
- 'freeUnits'?: string;
978
- /**
979
- * Free units period (FLAT, e.g. month)
980
- */
981
- 'freeUnitsPeriod'?: string;
982
- /**
983
- * Tiers for tiered pricing (TIERED)
984
- */
985
- 'tiers'?: Array<AppTierDTO>;
986
- /**
987
- * Billing period for usage aggregation (default month)
988
- */
989
- 'billingPeriod'?: string;
990
- /**
991
- * Allowed billing commitments: MONTHLY and/or ANNUAL
992
- */
993
- 'commitments'?: Array<string>;
994
- /**
995
- * Billable line items (meters and/or static queries)
996
- */
997
- 'lineItems'?: Array<AppPricingLineItemDTO>;
998
- }
999
- /**
1000
- * Billable line item on an app pricing plan
1001
- */
1002
- export interface AppPricingLineItemDTO {
1003
- /**
1004
- * Unique identifier for the entity
1005
- */
1006
- 'uuid': string;
1007
- /**
1008
- * The name of the entity
1009
- */
1010
- 'name': string;
1011
- /**
1012
- * Display label for the entity, can be different from name
1013
- */
1014
- 'label'?: string;
1015
- /**
1016
- * Unix timestamp when the entity was created
1017
- */
1018
- 'createdAt'?: number;
1019
- /**
1020
- * Identifier of the user who created the entity
1021
- */
1022
- 'createdBy'?: ModelRecord;
1023
- /**
1024
- * Unix timestamp when the entity was last updated
1025
- */
1026
- 'updatedAt'?: number;
1027
- /**
1028
- * Identifier of the user who last updated the entity
1029
- */
1030
- 'updatedBy'?: ModelRecord;
1031
- /**
1032
- * Unix timestamp when the entity was deleted (null if not deleted)
1033
- */
1034
- 'deletedAt'?: number;
1035
- /**
1036
- * Identifier of the user who deleted the entity
1037
- */
1038
- 'deletedBy'?: ModelRecord;
1039
- /**
1040
- * Index number for ordering entities
1041
- */
1042
- 'index'?: number;
1043
- /**
1044
- * Count type: meter or static_query
1045
- */
1046
- 'countType'?: string;
1047
- /**
1048
- * Event sources for meter line items: WEBHOOK, MANUAL, WEBHOOK_AND_MANUAL
1049
- */
1050
- 'countingSource'?: string;
1051
- /**
1052
- * Unit label (e.g. webhook, document)
1053
- */
1054
- 'unit'?: string;
1055
- /**
1056
- * Included units for FLAT line items
1057
- */
1058
- 'includedUnits'?: string;
1059
- /**
1060
- * Base price covering included units (FLAT)
1061
- */
1062
- 'pricePerUnit'?: string;
1063
- /**
1064
- * Price per unit above includedUnits (FLAT)
1065
- */
1066
- 'pricePerExtraUnit'?: string;
1067
- /**
1068
- * Scheduled Cypher snapshot for static_query line items
1069
- */
1070
- 'staticQuery'?: AppStaticQueryDTO;
1071
- /**
1072
- * Tiers for TIERED line items
1073
- */
1074
- 'tiers'?: Array<AppTierDTO>;
1075
- }
1076
812
  /**
1077
813
  * Publish and review state for a public app in the marketplace
1078
814
  */
@@ -1247,107 +983,6 @@ export interface AppSettingsSection {
1247
983
  'subtitle'?: string;
1248
984
  'settings'?: Array<string>;
1249
985
  }
1250
- /**
1251
- * Read-only Cypher snapshot used by static_query line items
1252
- */
1253
- export interface AppStaticQueryDTO {
1254
- /**
1255
- * When the query runs: period_end (default) or period_start
1256
- */
1257
- 'schedule'?: string;
1258
- /**
1259
- * Read-only Cypher that returns count(...) AS count
1260
- */
1261
- 'cypher'?: string;
1262
- }
1263
- /**
1264
- * Schedule a plan or commitment change
1265
- */
1266
- export interface AppSubscriptionChangeRequest {
1267
- 'targetPlanUuid'?: string;
1268
- /**
1269
- * MONTHLY or ANNUAL
1270
- */
1271
- 'targetCommitment'?: string;
1272
- }
1273
- /**
1274
- * Current and pending subscription state
1275
- */
1276
- export interface AppSubscriptionDTO {
1277
- 'selectedPricingPlanUuid'?: string;
1278
- 'billingCommitment'?: string;
1279
- 'contractStart'?: number;
1280
- 'contractEnd'?: number;
1281
- 'pendingPricingPlanUuid'?: string;
1282
- 'pendingBillingCommitment'?: string;
1283
- 'pendingEffectiveAt'?: number;
1284
- 'message'?: string;
1285
- }
1286
- /**
1287
- * Data transfer object for a pricing tier (plan) within tiered app pricing
1288
- */
1289
- export interface AppTierDTO {
1290
- /**
1291
- * Unique identifier for the entity
1292
- */
1293
- 'uuid': string;
1294
- /**
1295
- * The name of the entity
1296
- */
1297
- 'name': string;
1298
- /**
1299
- * Display label for the entity, can be different from name
1300
- */
1301
- 'label'?: string;
1302
- /**
1303
- * Unix timestamp when the entity was created
1304
- */
1305
- 'createdAt'?: number;
1306
- /**
1307
- * Identifier of the user who created the entity
1308
- */
1309
- 'createdBy'?: ModelRecord;
1310
- /**
1311
- * Unix timestamp when the entity was last updated
1312
- */
1313
- 'updatedAt'?: number;
1314
- /**
1315
- * Identifier of the user who last updated the entity
1316
- */
1317
- 'updatedBy'?: ModelRecord;
1318
- /**
1319
- * Unix timestamp when the entity was deleted (null if not deleted)
1320
- */
1321
- 'deletedAt'?: number;
1322
- /**
1323
- * Identifier of the user who deleted the entity
1324
- */
1325
- 'deletedBy'?: ModelRecord;
1326
- /**
1327
- * Index number for ordering entities
1328
- */
1329
- 'index'?: number;
1330
- /**
1331
- * Start of unit range (e.g. 0)
1332
- */
1333
- 'startUnits'?: string;
1334
- /**
1335
- * End of unit range (e.g. 1000 or null for unlimited)
1336
- */
1337
- 'endUnits'?: string;
1338
- /**
1339
- * Price per month (e.g. 10.00)
1340
- */
1341
- 'pricePerMonth'?: string;
1342
- /**
1343
- * Price per year (e.g. 100.00)
1344
- */
1345
- 'pricePerYear'?: string;
1346
- /**
1347
- * Price per extra unit beyond tier (e.g. 0.01, typically for last tier)
1348
- */
1349
- 'pricePerExtraUnit'?: string;
1350
- }
1351
986
  /**
1352
987
  * The billing settings of the company.
1353
988
  */
@@ -2451,9 +2086,9 @@ export const EventRsvpRequestScopeEnum = {
2451
2086
  export type EventRsvpRequestScopeEnum = typeof EventRsvpRequestScopeEnum[keyof typeof EventRsvpRequestScopeEnum];
2452
2087
 
2453
2088
  export interface ExistingWidgetSummary {
2454
- 'yproperty'?: string;
2455
2089
  'xproperty'?: string;
2456
2090
  'ymetric'?: string;
2091
+ 'yproperty'?: string;
2457
2092
  'title'?: string;
2458
2093
  'chartType'?: string;
2459
2094
  'xProperty'?: string;
@@ -2965,34 +2600,6 @@ export interface HasAppDTO {
2965
2600
  * OAuth access token expiry (epoch ms), if connected via OAuth
2966
2601
  */
2967
2602
  'oauthAccessTokenExpiresAt'?: number;
2968
- /**
2969
- * UUID of the pricing plan selected for this installation
2970
- */
2971
- 'selectedPricingPlanUuid'?: string;
2972
- /**
2973
- * MONTHLY or ANNUAL billing commitment
2974
- */
2975
- 'billingCommitment'?: string;
2976
- /**
2977
- * Current contract start (epoch ms)
2978
- */
2979
- 'contractStart'?: number;
2980
- /**
2981
- * Current contract end / renewal date (epoch ms)
2982
- */
2983
- 'contractEnd'?: number;
2984
- /**
2985
- * Plan scheduled to become active
2986
- */
2987
- 'pendingPricingPlanUuid'?: string;
2988
- /**
2989
- * Commitment scheduled to become active
2990
- */
2991
- 'pendingBillingCommitment'?: string;
2992
- /**
2993
- * When the pending subscription change takes effect (epoch ms)
2994
- */
2995
- 'pendingEffectiveAt'?: number;
2996
2603
  }
2997
2604
  /**
2998
2605
  * Optional initial configuration settings
@@ -3014,10 +2621,6 @@ export interface InstallAppRequest {
3014
2621
  * Optional per-app-bar placement config keyed by app bar UUID.
3015
2622
  */
3016
2623
  'appBarVisibility'?: { [key: string]: AppBarVisibilityEntry; };
3017
- /**
3018
- * UUID of the pricing plan selected for this installation.
3019
- */
3020
- 'selectedPricingPlanUuid'?: string;
3021
2624
  }
3022
2625
  /**
3023
2626
  * DTO representing a lead score rule
@@ -4807,7 +4410,7 @@ export interface ShowResponse {
4807
4410
  /**
4808
4411
  * Represents the response for viewing or showing a specific resource.
4809
4412
  */
4810
- export interface ShowResponseAppBillingStatusResponse {
4413
+ export interface ShowResponseAppExternalOAuthProviderDTO {
4811
4414
  /**
4812
4415
  * A message detailing the result of the operation.
4813
4416
  */
@@ -4815,12 +4418,12 @@ export interface ShowResponseAppBillingStatusResponse {
4815
4418
  /**
4816
4419
  * The data payload of the response, if any.
4817
4420
  */
4818
- 'data'?: AppBillingStatusResponse;
4421
+ 'data'?: AppExternalOAuthProviderDTO;
4819
4422
  }
4820
4423
  /**
4821
4424
  * Represents the response for viewing or showing a specific resource.
4822
4425
  */
4823
- export interface ShowResponseAppExternalOAuthProviderDTO {
4426
+ export interface ShowResponseAppInboundRouteDTO {
4824
4427
  /**
4825
4428
  * A message detailing the result of the operation.
4826
4429
  */
@@ -4828,51 +4431,12 @@ export interface ShowResponseAppExternalOAuthProviderDTO {
4828
4431
  /**
4829
4432
  * The data payload of the response, if any.
4830
4433
  */
4831
- 'data'?: AppExternalOAuthProviderDTO;
4434
+ 'data'?: AppInboundRouteDTO;
4832
4435
  }
4833
4436
  /**
4834
4437
  * Represents the response for viewing or showing a specific resource.
4835
4438
  */
4836
- export interface ShowResponseAppInboundRouteDTO {
4837
- /**
4838
- * A message detailing the result of the operation.
4839
- */
4840
- 'message'?: string;
4841
- /**
4842
- * The data payload of the response, if any.
4843
- */
4844
- 'data'?: AppInboundRouteDTO;
4845
- }
4846
- /**
4847
- * Represents the response for viewing or showing a specific resource.
4848
- */
4849
- export interface ShowResponseAppInstallationBillingStatusDTO {
4850
- /**
4851
- * A message detailing the result of the operation.
4852
- */
4853
- 'message'?: string;
4854
- /**
4855
- * The data payload of the response, if any.
4856
- */
4857
- 'data'?: AppInstallationBillingStatusDTO;
4858
- }
4859
- /**
4860
- * Represents the response for viewing or showing a specific resource.
4861
- */
4862
- export interface ShowResponseAppMeterEventResponse {
4863
- /**
4864
- * A message detailing the result of the operation.
4865
- */
4866
- 'message'?: string;
4867
- /**
4868
- * The data payload of the response, if any.
4869
- */
4870
- 'data'?: AppMeterEventResponse;
4871
- }
4872
- /**
4873
- * Represents the response for viewing or showing a specific resource.
4874
- */
4875
- export interface ShowResponseAppOAuthStartResponseDTO {
4439
+ export interface ShowResponseAppOAuthStartResponseDTO {
4876
4440
  /**
4877
4441
  * A message detailing the result of the operation.
4878
4442
  */
@@ -4895,19 +4459,6 @@ export interface ShowResponseAppScheduleDTO {
4895
4459
  */
4896
4460
  'data'?: AppScheduleDTO;
4897
4461
  }
4898
- /**
4899
- * Represents the response for viewing or showing a specific resource.
4900
- */
4901
- export interface ShowResponseAppSubscriptionDTO {
4902
- /**
4903
- * A message detailing the result of the operation.
4904
- */
4905
- 'message'?: string;
4906
- /**
4907
- * The data payload of the response, if any.
4908
- */
4909
- 'data'?: AppSubscriptionDTO;
4910
- }
4911
4462
  /**
4912
4463
  * Represents the response for viewing or showing a specific resource.
4913
4464
  */
@@ -4921,19 +4472,6 @@ export interface ShowResponseListAppConnectionStatusDTO {
4921
4472
  */
4922
4473
  'data'?: Array<AppConnectionStatusDTO>;
4923
4474
  }
4924
- /**
4925
- * Represents the response for viewing or showing a specific resource.
4926
- */
4927
- export interface ShowResponseListAppInstallationBillingStatusDTO {
4928
- /**
4929
- * A message detailing the result of the operation.
4930
- */
4931
- 'message'?: string;
4932
- /**
4933
- * The data payload of the response, if any.
4934
- */
4935
- 'data'?: Array<AppInstallationBillingStatusDTO>;
4936
- }
4937
4475
  /**
4938
4476
  * Represents the response for viewing or showing a specific resource.
4939
4477
  */
@@ -5394,9 +4932,9 @@ export interface StyleSetDTO {
5394
4932
  'hyperlinkLetterSpacing'?: any;
5395
4933
  'hyperlinkColorLight'?: string;
5396
4934
  'hyperlinkColorDark'?: string;
5397
- 'zindex'?: number;
5398
4935
  'xlargeFontSize'?: any;
5399
4936
  'xsmallFontSize'?: any;
4937
+ 'zindex'?: number;
5400
4938
  }
5401
4939
  /**
5402
4940
  * Data Transfer Object for subscribing to a webhook. This DTO represents the details required to configure a webhook subscription.
@@ -7017,648 +6555,6 @@ export const ListAppBarsLocationEnum = {
7017
6555
  export type ListAppBarsLocationEnum = typeof ListAppBarsLocationEnum[keyof typeof ListAppBarsLocationEnum];
7018
6556
 
7019
6557
 
7020
- /**
7021
- * AppBillingApi - axios parameter creator
7022
- */
7023
- export const AppBillingApiAxiosParamCreator = function (configuration?: Configuration) {
7024
- return {
7025
- /**
7026
- *
7027
- * @summary Current-period billing for every installation of an app
7028
- * @param {string} appUuid
7029
- * @param {*} [options] Override http request option.
7030
- * @throws {RequiredError}
7031
- */
7032
- appBillingStatus: async (appUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7033
- // verify required parameter 'appUuid' is not null or undefined
7034
- assertParamExists('appBillingStatus', 'appUuid', appUuid)
7035
- const localVarPath = `/api/v2/apps/{appUuid}/billing/status`
7036
- .replace('{appUuid}', encodeURIComponent(String(appUuid)));
7037
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7038
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7039
- let baseOptions;
7040
- if (configuration) {
7041
- baseOptions = configuration.baseOptions;
7042
- }
7043
-
7044
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7045
- const localVarHeaderParameter = {} as any;
7046
- const localVarQueryParameter = {} as any;
7047
-
7048
- // authentication bearerAuth required
7049
- // http bearer authentication required
7050
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
7051
-
7052
- localVarHeaderParameter['Accept'] = 'application/json';
7053
-
7054
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7055
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7056
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7057
-
7058
- return {
7059
- url: toPathString(localVarUrlObj),
7060
- options: localVarRequestOptions,
7061
- };
7062
- },
7063
- /**
7064
- *
7065
- * @summary Cancel a scheduled subscription change
7066
- * @param {string} appUuid
7067
- * @param {*} [options] Override http request option.
7068
- * @throws {RequiredError}
7069
- */
7070
- cancelPendingChange: async (appUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7071
- // verify required parameter 'appUuid' is not null or undefined
7072
- assertParamExists('cancelPendingChange', 'appUuid', appUuid)
7073
- const localVarPath = `/api/v2/apps/{appUuid}/installation/subscription/pending`
7074
- .replace('{appUuid}', encodeURIComponent(String(appUuid)));
7075
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7076
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7077
- let baseOptions;
7078
- if (configuration) {
7079
- baseOptions = configuration.baseOptions;
7080
- }
7081
-
7082
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
7083
- const localVarHeaderParameter = {} as any;
7084
- const localVarQueryParameter = {} as any;
7085
-
7086
- // authentication bearerAuth required
7087
- // http bearer authentication required
7088
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
7089
-
7090
- localVarHeaderParameter['Accept'] = 'application/json';
7091
-
7092
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7093
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7094
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7095
-
7096
- return {
7097
- url: toPathString(localVarUrlObj),
7098
- options: localVarRequestOptions,
7099
- };
7100
- },
7101
- /**
7102
- *
7103
- * @summary Current subscription state for the selected company\'s installation
7104
- * @param {string} appUuid
7105
- * @param {*} [options] Override http request option.
7106
- * @throws {RequiredError}
7107
- */
7108
- getSubscription: async (appUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7109
- // verify required parameter 'appUuid' is not null or undefined
7110
- assertParamExists('getSubscription', 'appUuid', appUuid)
7111
- const localVarPath = `/api/v2/apps/{appUuid}/installation/subscription`
7112
- .replace('{appUuid}', encodeURIComponent(String(appUuid)));
7113
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7114
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7115
- let baseOptions;
7116
- if (configuration) {
7117
- baseOptions = configuration.baseOptions;
7118
- }
7119
-
7120
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7121
- const localVarHeaderParameter = {} as any;
7122
- const localVarQueryParameter = {} as any;
7123
-
7124
- // authentication bearerAuth required
7125
- // http bearer authentication required
7126
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
7127
-
7128
- localVarHeaderParameter['Accept'] = 'application/json';
7129
-
7130
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7131
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7132
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7133
-
7134
- return {
7135
- url: toPathString(localVarUrlObj),
7136
- options: localVarRequestOptions,
7137
- };
7138
- },
7139
- /**
7140
- *
7141
- * @summary Current-period billing for the selected company\'s installation
7142
- * @param {string} appUuid
7143
- * @param {*} [options] Override http request option.
7144
- * @throws {RequiredError}
7145
- */
7146
- installationBillingStatus: async (appUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7147
- // verify required parameter 'appUuid' is not null or undefined
7148
- assertParamExists('installationBillingStatus', 'appUuid', appUuid)
7149
- const localVarPath = `/api/v2/apps/{appUuid}/installation/billing/status`
7150
- .replace('{appUuid}', encodeURIComponent(String(appUuid)));
7151
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7152
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7153
- let baseOptions;
7154
- if (configuration) {
7155
- baseOptions = configuration.baseOptions;
7156
- }
7157
-
7158
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7159
- const localVarHeaderParameter = {} as any;
7160
- const localVarQueryParameter = {} as any;
7161
-
7162
- // authentication bearerAuth required
7163
- // http bearer authentication required
7164
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
7165
-
7166
- localVarHeaderParameter['Accept'] = 'application/json';
7167
-
7168
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7169
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7170
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7171
-
7172
- return {
7173
- url: toPathString(localVarUrlObj),
7174
- options: localVarRequestOptions,
7175
- };
7176
- },
7177
- /**
7178
- *
7179
- * @summary Platform-wide current-period app usage billing
7180
- * @param {string} [appUuid]
7181
- * @param {number} [page]
7182
- * @param {number} [limit]
7183
- * @param {*} [options] Override http request option.
7184
- * @throws {RequiredError}
7185
- */
7186
- platformBillingStatus: async (appUuid?: string, page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7187
- const localVarPath = `/api/v2/apps/billing/status`;
7188
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7189
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7190
- let baseOptions;
7191
- if (configuration) {
7192
- baseOptions = configuration.baseOptions;
7193
- }
7194
-
7195
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7196
- const localVarHeaderParameter = {} as any;
7197
- const localVarQueryParameter = {} as any;
7198
-
7199
- // authentication bearerAuth required
7200
- // http bearer authentication required
7201
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
7202
-
7203
- if (appUuid !== undefined) {
7204
- localVarQueryParameter['appUuid'] = appUuid;
7205
- }
7206
-
7207
- if (page !== undefined) {
7208
- localVarQueryParameter['page'] = page;
7209
- }
7210
-
7211
- if (limit !== undefined) {
7212
- localVarQueryParameter['limit'] = limit;
7213
- }
7214
-
7215
- localVarHeaderParameter['Accept'] = 'application/json';
7216
-
7217
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7218
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7219
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7220
-
7221
- return {
7222
- url: toPathString(localVarUrlObj),
7223
- options: localVarRequestOptions,
7224
- };
7225
- },
7226
- /**
7227
- *
7228
- * @summary Record a manual meter event for the selected company\'s installation
7229
- * @param {string} appUuid
7230
- * @param {AppMeterEventRequest} appMeterEventRequest
7231
- * @param {*} [options] Override http request option.
7232
- * @throws {RequiredError}
7233
- */
7234
- recordMeterEvent: async (appUuid: string, appMeterEventRequest: AppMeterEventRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7235
- // verify required parameter 'appUuid' is not null or undefined
7236
- assertParamExists('recordMeterEvent', 'appUuid', appUuid)
7237
- // verify required parameter 'appMeterEventRequest' is not null or undefined
7238
- assertParamExists('recordMeterEvent', 'appMeterEventRequest', appMeterEventRequest)
7239
- const localVarPath = `/api/v2/apps/{appUuid}/installation/meter-events`
7240
- .replace('{appUuid}', encodeURIComponent(String(appUuid)));
7241
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7242
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7243
- let baseOptions;
7244
- if (configuration) {
7245
- baseOptions = configuration.baseOptions;
7246
- }
7247
-
7248
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7249
- const localVarHeaderParameter = {} as any;
7250
- const localVarQueryParameter = {} as any;
7251
-
7252
- // authentication bearerAuth required
7253
- // http bearer authentication required
7254
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
7255
-
7256
- localVarHeaderParameter['Content-Type'] = 'application/json';
7257
- localVarHeaderParameter['Accept'] = 'application/json';
7258
-
7259
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7260
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7261
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7262
- localVarRequestOptions.data = serializeDataIfNeeded(appMeterEventRequest, localVarRequestOptions, configuration)
7263
-
7264
- return {
7265
- url: toPathString(localVarUrlObj),
7266
- options: localVarRequestOptions,
7267
- };
7268
- },
7269
- /**
7270
- *
7271
- * @summary Schedule a plan or commitment change
7272
- * @param {string} appUuid
7273
- * @param {AppSubscriptionChangeRequest} appSubscriptionChangeRequest
7274
- * @param {*} [options] Override http request option.
7275
- * @throws {RequiredError}
7276
- */
7277
- scheduleSubscriptionChange: async (appUuid: string, appSubscriptionChangeRequest: AppSubscriptionChangeRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7278
- // verify required parameter 'appUuid' is not null or undefined
7279
- assertParamExists('scheduleSubscriptionChange', 'appUuid', appUuid)
7280
- // verify required parameter 'appSubscriptionChangeRequest' is not null or undefined
7281
- assertParamExists('scheduleSubscriptionChange', 'appSubscriptionChangeRequest', appSubscriptionChangeRequest)
7282
- const localVarPath = `/api/v2/apps/{appUuid}/installation/subscription/change`
7283
- .replace('{appUuid}', encodeURIComponent(String(appUuid)));
7284
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7285
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7286
- let baseOptions;
7287
- if (configuration) {
7288
- baseOptions = configuration.baseOptions;
7289
- }
7290
-
7291
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7292
- const localVarHeaderParameter = {} as any;
7293
- const localVarQueryParameter = {} as any;
7294
-
7295
- // authentication bearerAuth required
7296
- // http bearer authentication required
7297
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
7298
-
7299
- localVarHeaderParameter['Content-Type'] = 'application/json';
7300
- localVarHeaderParameter['Accept'] = 'application/json';
7301
-
7302
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7303
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7304
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7305
- localVarRequestOptions.data = serializeDataIfNeeded(appSubscriptionChangeRequest, localVarRequestOptions, configuration)
7306
-
7307
- return {
7308
- url: toPathString(localVarUrlObj),
7309
- options: localVarRequestOptions,
7310
- };
7311
- },
7312
- /**
7313
- *
7314
- * @summary Usage periods for the selected company\'s installation
7315
- * @param {string} appUuid
7316
- * @param {*} [options] Override http request option.
7317
- * @throws {RequiredError}
7318
- */
7319
- usagePeriods: async (appUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7320
- // verify required parameter 'appUuid' is not null or undefined
7321
- assertParamExists('usagePeriods', 'appUuid', appUuid)
7322
- const localVarPath = `/api/v2/apps/{appUuid}/installation/usage/periods`
7323
- .replace('{appUuid}', encodeURIComponent(String(appUuid)));
7324
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7325
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7326
- let baseOptions;
7327
- if (configuration) {
7328
- baseOptions = configuration.baseOptions;
7329
- }
7330
-
7331
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7332
- const localVarHeaderParameter = {} as any;
7333
- const localVarQueryParameter = {} as any;
7334
-
7335
- // authentication bearerAuth required
7336
- // http bearer authentication required
7337
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
7338
-
7339
- localVarHeaderParameter['Accept'] = 'application/json';
7340
-
7341
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7342
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7343
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7344
-
7345
- return {
7346
- url: toPathString(localVarUrlObj),
7347
- options: localVarRequestOptions,
7348
- };
7349
- },
7350
- }
7351
- };
7352
-
7353
- /**
7354
- * AppBillingApi - functional programming interface
7355
- */
7356
- export const AppBillingApiFp = function(configuration?: Configuration) {
7357
- const localVarAxiosParamCreator = AppBillingApiAxiosParamCreator(configuration)
7358
- return {
7359
- /**
7360
- *
7361
- * @summary Current-period billing for every installation of an app
7362
- * @param {string} appUuid
7363
- * @param {*} [options] Override http request option.
7364
- * @throws {RequiredError}
7365
- */
7366
- async appBillingStatus(appUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseAppBillingStatusResponse>> {
7367
- const localVarAxiosArgs = await localVarAxiosParamCreator.appBillingStatus(appUuid, options);
7368
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7369
- const localVarOperationServerBasePath = operationServerMap['AppBillingApi.appBillingStatus']?.[localVarOperationServerIndex]?.url;
7370
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7371
- },
7372
- /**
7373
- *
7374
- * @summary Cancel a scheduled subscription change
7375
- * @param {string} appUuid
7376
- * @param {*} [options] Override http request option.
7377
- * @throws {RequiredError}
7378
- */
7379
- async cancelPendingChange(appUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseAppSubscriptionDTO>> {
7380
- const localVarAxiosArgs = await localVarAxiosParamCreator.cancelPendingChange(appUuid, options);
7381
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7382
- const localVarOperationServerBasePath = operationServerMap['AppBillingApi.cancelPendingChange']?.[localVarOperationServerIndex]?.url;
7383
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7384
- },
7385
- /**
7386
- *
7387
- * @summary Current subscription state for the selected company\'s installation
7388
- * @param {string} appUuid
7389
- * @param {*} [options] Override http request option.
7390
- * @throws {RequiredError}
7391
- */
7392
- async getSubscription(appUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseAppSubscriptionDTO>> {
7393
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSubscription(appUuid, options);
7394
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7395
- const localVarOperationServerBasePath = operationServerMap['AppBillingApi.getSubscription']?.[localVarOperationServerIndex]?.url;
7396
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7397
- },
7398
- /**
7399
- *
7400
- * @summary Current-period billing for the selected company\'s installation
7401
- * @param {string} appUuid
7402
- * @param {*} [options] Override http request option.
7403
- * @throws {RequiredError}
7404
- */
7405
- async installationBillingStatus(appUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseAppInstallationBillingStatusDTO>> {
7406
- const localVarAxiosArgs = await localVarAxiosParamCreator.installationBillingStatus(appUuid, options);
7407
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7408
- const localVarOperationServerBasePath = operationServerMap['AppBillingApi.installationBillingStatus']?.[localVarOperationServerIndex]?.url;
7409
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7410
- },
7411
- /**
7412
- *
7413
- * @summary Platform-wide current-period app usage billing
7414
- * @param {string} [appUuid]
7415
- * @param {number} [page]
7416
- * @param {number} [limit]
7417
- * @param {*} [options] Override http request option.
7418
- * @throws {RequiredError}
7419
- */
7420
- async platformBillingStatus(appUuid?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseAppBillingStatusResponse>> {
7421
- const localVarAxiosArgs = await localVarAxiosParamCreator.platformBillingStatus(appUuid, page, limit, options);
7422
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7423
- const localVarOperationServerBasePath = operationServerMap['AppBillingApi.platformBillingStatus']?.[localVarOperationServerIndex]?.url;
7424
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7425
- },
7426
- /**
7427
- *
7428
- * @summary Record a manual meter event for the selected company\'s installation
7429
- * @param {string} appUuid
7430
- * @param {AppMeterEventRequest} appMeterEventRequest
7431
- * @param {*} [options] Override http request option.
7432
- * @throws {RequiredError}
7433
- */
7434
- async recordMeterEvent(appUuid: string, appMeterEventRequest: AppMeterEventRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseAppMeterEventResponse>> {
7435
- const localVarAxiosArgs = await localVarAxiosParamCreator.recordMeterEvent(appUuid, appMeterEventRequest, options);
7436
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7437
- const localVarOperationServerBasePath = operationServerMap['AppBillingApi.recordMeterEvent']?.[localVarOperationServerIndex]?.url;
7438
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7439
- },
7440
- /**
7441
- *
7442
- * @summary Schedule a plan or commitment change
7443
- * @param {string} appUuid
7444
- * @param {AppSubscriptionChangeRequest} appSubscriptionChangeRequest
7445
- * @param {*} [options] Override http request option.
7446
- * @throws {RequiredError}
7447
- */
7448
- async scheduleSubscriptionChange(appUuid: string, appSubscriptionChangeRequest: AppSubscriptionChangeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseAppSubscriptionDTO>> {
7449
- const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleSubscriptionChange(appUuid, appSubscriptionChangeRequest, options);
7450
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7451
- const localVarOperationServerBasePath = operationServerMap['AppBillingApi.scheduleSubscriptionChange']?.[localVarOperationServerIndex]?.url;
7452
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7453
- },
7454
- /**
7455
- *
7456
- * @summary Usage periods for the selected company\'s installation
7457
- * @param {string} appUuid
7458
- * @param {*} [options] Override http request option.
7459
- * @throws {RequiredError}
7460
- */
7461
- async usagePeriods(appUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseListAppInstallationBillingStatusDTO>> {
7462
- const localVarAxiosArgs = await localVarAxiosParamCreator.usagePeriods(appUuid, options);
7463
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7464
- const localVarOperationServerBasePath = operationServerMap['AppBillingApi.usagePeriods']?.[localVarOperationServerIndex]?.url;
7465
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7466
- },
7467
- }
7468
- };
7469
-
7470
- /**
7471
- * AppBillingApi - factory interface
7472
- */
7473
- export const AppBillingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
7474
- const localVarFp = AppBillingApiFp(configuration)
7475
- return {
7476
- /**
7477
- *
7478
- * @summary Current-period billing for every installation of an app
7479
- * @param {string} appUuid
7480
- * @param {*} [options] Override http request option.
7481
- * @throws {RequiredError}
7482
- */
7483
- appBillingStatus(appUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseAppBillingStatusResponse> {
7484
- return localVarFp.appBillingStatus(appUuid, options).then((request) => request(axios, basePath));
7485
- },
7486
- /**
7487
- *
7488
- * @summary Cancel a scheduled subscription change
7489
- * @param {string} appUuid
7490
- * @param {*} [options] Override http request option.
7491
- * @throws {RequiredError}
7492
- */
7493
- cancelPendingChange(appUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseAppSubscriptionDTO> {
7494
- return localVarFp.cancelPendingChange(appUuid, options).then((request) => request(axios, basePath));
7495
- },
7496
- /**
7497
- *
7498
- * @summary Current subscription state for the selected company\'s installation
7499
- * @param {string} appUuid
7500
- * @param {*} [options] Override http request option.
7501
- * @throws {RequiredError}
7502
- */
7503
- getSubscription(appUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseAppSubscriptionDTO> {
7504
- return localVarFp.getSubscription(appUuid, options).then((request) => request(axios, basePath));
7505
- },
7506
- /**
7507
- *
7508
- * @summary Current-period billing for the selected company\'s installation
7509
- * @param {string} appUuid
7510
- * @param {*} [options] Override http request option.
7511
- * @throws {RequiredError}
7512
- */
7513
- installationBillingStatus(appUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseAppInstallationBillingStatusDTO> {
7514
- return localVarFp.installationBillingStatus(appUuid, options).then((request) => request(axios, basePath));
7515
- },
7516
- /**
7517
- *
7518
- * @summary Platform-wide current-period app usage billing
7519
- * @param {string} [appUuid]
7520
- * @param {number} [page]
7521
- * @param {number} [limit]
7522
- * @param {*} [options] Override http request option.
7523
- * @throws {RequiredError}
7524
- */
7525
- platformBillingStatus(appUuid?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseAppBillingStatusResponse> {
7526
- return localVarFp.platformBillingStatus(appUuid, page, limit, options).then((request) => request(axios, basePath));
7527
- },
7528
- /**
7529
- *
7530
- * @summary Record a manual meter event for the selected company\'s installation
7531
- * @param {string} appUuid
7532
- * @param {AppMeterEventRequest} appMeterEventRequest
7533
- * @param {*} [options] Override http request option.
7534
- * @throws {RequiredError}
7535
- */
7536
- recordMeterEvent(appUuid: string, appMeterEventRequest: AppMeterEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseAppMeterEventResponse> {
7537
- return localVarFp.recordMeterEvent(appUuid, appMeterEventRequest, options).then((request) => request(axios, basePath));
7538
- },
7539
- /**
7540
- *
7541
- * @summary Schedule a plan or commitment change
7542
- * @param {string} appUuid
7543
- * @param {AppSubscriptionChangeRequest} appSubscriptionChangeRequest
7544
- * @param {*} [options] Override http request option.
7545
- * @throws {RequiredError}
7546
- */
7547
- scheduleSubscriptionChange(appUuid: string, appSubscriptionChangeRequest: AppSubscriptionChangeRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseAppSubscriptionDTO> {
7548
- return localVarFp.scheduleSubscriptionChange(appUuid, appSubscriptionChangeRequest, options).then((request) => request(axios, basePath));
7549
- },
7550
- /**
7551
- *
7552
- * @summary Usage periods for the selected company\'s installation
7553
- * @param {string} appUuid
7554
- * @param {*} [options] Override http request option.
7555
- * @throws {RequiredError}
7556
- */
7557
- usagePeriods(appUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseListAppInstallationBillingStatusDTO> {
7558
- return localVarFp.usagePeriods(appUuid, options).then((request) => request(axios, basePath));
7559
- },
7560
- };
7561
- };
7562
-
7563
- /**
7564
- * AppBillingApi - object-oriented interface
7565
- */
7566
- export class AppBillingApi extends BaseAPI {
7567
- /**
7568
- *
7569
- * @summary Current-period billing for every installation of an app
7570
- * @param {string} appUuid
7571
- * @param {*} [options] Override http request option.
7572
- * @throws {RequiredError}
7573
- */
7574
- public appBillingStatus(appUuid: string, options?: RawAxiosRequestConfig) {
7575
- return AppBillingApiFp(this.configuration).appBillingStatus(appUuid, options).then((request) => request(this.axios, this.basePath));
7576
- }
7577
-
7578
- /**
7579
- *
7580
- * @summary Cancel a scheduled subscription change
7581
- * @param {string} appUuid
7582
- * @param {*} [options] Override http request option.
7583
- * @throws {RequiredError}
7584
- */
7585
- public cancelPendingChange(appUuid: string, options?: RawAxiosRequestConfig) {
7586
- return AppBillingApiFp(this.configuration).cancelPendingChange(appUuid, options).then((request) => request(this.axios, this.basePath));
7587
- }
7588
-
7589
- /**
7590
- *
7591
- * @summary Current subscription state for the selected company\'s installation
7592
- * @param {string} appUuid
7593
- * @param {*} [options] Override http request option.
7594
- * @throws {RequiredError}
7595
- */
7596
- public getSubscription(appUuid: string, options?: RawAxiosRequestConfig) {
7597
- return AppBillingApiFp(this.configuration).getSubscription(appUuid, options).then((request) => request(this.axios, this.basePath));
7598
- }
7599
-
7600
- /**
7601
- *
7602
- * @summary Current-period billing for the selected company\'s installation
7603
- * @param {string} appUuid
7604
- * @param {*} [options] Override http request option.
7605
- * @throws {RequiredError}
7606
- */
7607
- public installationBillingStatus(appUuid: string, options?: RawAxiosRequestConfig) {
7608
- return AppBillingApiFp(this.configuration).installationBillingStatus(appUuid, options).then((request) => request(this.axios, this.basePath));
7609
- }
7610
-
7611
- /**
7612
- *
7613
- * @summary Platform-wide current-period app usage billing
7614
- * @param {string} [appUuid]
7615
- * @param {number} [page]
7616
- * @param {number} [limit]
7617
- * @param {*} [options] Override http request option.
7618
- * @throws {RequiredError}
7619
- */
7620
- public platformBillingStatus(appUuid?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig) {
7621
- return AppBillingApiFp(this.configuration).platformBillingStatus(appUuid, page, limit, options).then((request) => request(this.axios, this.basePath));
7622
- }
7623
-
7624
- /**
7625
- *
7626
- * @summary Record a manual meter event for the selected company\'s installation
7627
- * @param {string} appUuid
7628
- * @param {AppMeterEventRequest} appMeterEventRequest
7629
- * @param {*} [options] Override http request option.
7630
- * @throws {RequiredError}
7631
- */
7632
- public recordMeterEvent(appUuid: string, appMeterEventRequest: AppMeterEventRequest, options?: RawAxiosRequestConfig) {
7633
- return AppBillingApiFp(this.configuration).recordMeterEvent(appUuid, appMeterEventRequest, options).then((request) => request(this.axios, this.basePath));
7634
- }
7635
-
7636
- /**
7637
- *
7638
- * @summary Schedule a plan or commitment change
7639
- * @param {string} appUuid
7640
- * @param {AppSubscriptionChangeRequest} appSubscriptionChangeRequest
7641
- * @param {*} [options] Override http request option.
7642
- * @throws {RequiredError}
7643
- */
7644
- public scheduleSubscriptionChange(appUuid: string, appSubscriptionChangeRequest: AppSubscriptionChangeRequest, options?: RawAxiosRequestConfig) {
7645
- return AppBillingApiFp(this.configuration).scheduleSubscriptionChange(appUuid, appSubscriptionChangeRequest, options).then((request) => request(this.axios, this.basePath));
7646
- }
7647
-
7648
- /**
7649
- *
7650
- * @summary Usage periods for the selected company\'s installation
7651
- * @param {string} appUuid
7652
- * @param {*} [options] Override http request option.
7653
- * @throws {RequiredError}
7654
- */
7655
- public usagePeriods(appUuid: string, options?: RawAxiosRequestConfig) {
7656
- return AppBillingApiFp(this.configuration).usagePeriods(appUuid, options).then((request) => request(this.axios, this.basePath));
7657
- }
7658
- }
7659
-
7660
-
7661
-
7662
6558
  /**
7663
6559
  * AppInstallationRuntimeApi - axios parameter creator
7664
6560
  */