@griffin-app/griffin-hub-sdk 1.0.0 → 1.0.1

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.
Files changed (89) hide show
  1. package/.openapi-generator/FILES +15 -20
  2. package/README.md +18 -24
  3. package/api.ts +389 -617
  4. package/dist/api.d.ts +221 -356
  5. package/dist/api.js +281 -473
  6. package/dist/esm/api.d.ts +221 -356
  7. package/dist/esm/api.js +272 -460
  8. package/dist/openapi-ts.config.d.ts +2 -0
  9. package/dist/openapi-ts.config.js +14 -0
  10. package/dist/openapi-ts.config.js.map +1 -0
  11. package/dist/src/client/client/client.gen.d.ts +2 -0
  12. package/dist/src/client/client/client.gen.js +199 -0
  13. package/dist/src/client/client/client.gen.js.map +1 -0
  14. package/dist/src/client/client/index.d.ts +8 -0
  15. package/dist/src/client/client/index.js +6 -0
  16. package/dist/src/client/client/index.js.map +1 -0
  17. package/dist/src/client/client/types.gen.d.ts +68 -0
  18. package/dist/src/client/client/types.gen.js +2 -0
  19. package/dist/src/client/client/types.gen.js.map +1 -0
  20. package/dist/src/client/client/utils.gen.d.ts +30 -0
  21. package/dist/src/client/client/utils.gen.js +232 -0
  22. package/dist/src/client/client/utils.gen.js.map +1 -0
  23. package/dist/src/client/client.gen.d.ts +4 -0
  24. package/dist/src/client/client.gen.js +3 -0
  25. package/dist/src/client/client.gen.js.map +1 -0
  26. package/dist/src/client/core/auth.gen.d.ts +8 -0
  27. package/dist/src/client/core/auth.gen.js +23 -0
  28. package/dist/src/client/core/auth.gen.js.map +1 -0
  29. package/dist/src/client/core/bodySerializer.gen.d.ts +21 -0
  30. package/dist/src/client/core/bodySerializer.gen.js +57 -0
  31. package/dist/src/client/core/bodySerializer.gen.js.map +1 -0
  32. package/dist/src/client/core/params.gen.d.ts +26 -0
  33. package/dist/src/client/core/params.gen.js +100 -0
  34. package/dist/src/client/core/params.gen.js.map +1 -0
  35. package/dist/src/client/core/pathSerializer.gen.d.ts +30 -0
  36. package/dist/src/client/core/pathSerializer.gen.js +114 -0
  37. package/dist/src/client/core/pathSerializer.gen.js.map +1 -0
  38. package/dist/src/client/core/queryKeySerializer.gen.d.ts +6 -0
  39. package/dist/src/client/core/queryKeySerializer.gen.js +84 -0
  40. package/dist/src/client/core/queryKeySerializer.gen.js.map +1 -0
  41. package/dist/src/client/core/serverSentEvents.gen.d.ts +23 -0
  42. package/dist/src/client/core/serverSentEvents.gen.js +153 -0
  43. package/dist/src/client/core/serverSentEvents.gen.js.map +1 -0
  44. package/dist/src/client/core/types.gen.d.ts +32 -0
  45. package/dist/src/client/core/types.gen.js +2 -0
  46. package/dist/src/client/core/types.gen.js.map +1 -0
  47. package/dist/src/client/core/utils.gen.d.ts +19 -0
  48. package/dist/src/client/core/utils.gen.js +84 -0
  49. package/dist/src/client/core/utils.gen.js.map +1 -0
  50. package/dist/src/client/index.d.ts +2 -0
  51. package/dist/src/client/index.js +2 -0
  52. package/dist/src/client/index.js.map +1 -0
  53. package/dist/src/client/sdk.gen.d.ts +11 -0
  54. package/dist/src/client/sdk.gen.js +10 -0
  55. package/dist/src/client/sdk.gen.js.map +1 -0
  56. package/dist/src/client/types.gen.d.ts +217 -0
  57. package/dist/src/client/types.gen.js +2 -0
  58. package/dist/src/client/types.gen.js.map +1 -0
  59. package/docs/{Assertion1AnyOf.md → AssertionAnyOf.md} +3 -3
  60. package/docs/{Assertion1AnyOf1.md → AssertionAnyOf1.md} +3 -3
  61. package/docs/{Assertion1AnyOf2.md → AssertionAnyOf2.md} +3 -3
  62. package/docs/Assertions.md +1 -1
  63. package/docs/{Assertion1.md → AssertionsAssertionsInner.md} +4 -4
  64. package/docs/AssertionsAssertionsInnerAnyOf.md +28 -0
  65. package/docs/AssertionsAssertionsInnerAnyOfAllOfPredicate.md +22 -0
  66. package/docs/AssertionsAssertionsInnerAnyOfAllOfPredicateAnyOf.md +22 -0
  67. package/docs/Endpoint.md +3 -3
  68. package/docs/{Endpoint1HeadersValue.md → EndpointHeadersValue.md} +4 -4
  69. package/docs/{Endpoint1HeadersValueAnyOf.md → EndpointHeadersValueAnyOf.md} +4 -4
  70. package/docs/{Endpoint1HeadersValueAnyOfSecret.md → EndpointHeadersValueAnyOfSecret.md} +3 -3
  71. package/docs/{Edge1.md → EndpointPath.md} +5 -7
  72. package/docs/{Wait1.md → EndpointPathAnyOf.md} +5 -9
  73. package/docs/{Endpoint1Base.md → EndpointPathAnyOfVariable.md} +5 -5
  74. package/docs/Node.md +4 -4
  75. package/docs/PlanApi.md +195 -5
  76. package/docs/PlanPostRequest.md +34 -0
  77. package/docs/PlanPostRequestFrequency.md +22 -0
  78. package/docs/TestPlanV1.md +4 -6
  79. package/package.json +1 -1
  80. package/docs/Assertions1.md +0 -24
  81. package/docs/ConfigApi.md +0 -330
  82. package/docs/ConfigGet200Response.md +0 -20
  83. package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyGet200Response.md +0 -20
  84. package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyGet200ResponseData.md +0 -20
  85. package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyPut200Response.md +0 -20
  86. package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyPut200ResponseData.md +0 -30
  87. package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest.md +0 -20
  88. package/docs/Endpoint1.md +0 -34
  89. package/docs/Node1.md +0 -38
package/dist/esm/api.js CHANGED
@@ -42,33 +42,66 @@ export const AssertionAccessorEnum = {
42
42
  Headers: 'headers',
43
43
  Status: 'status'
44
44
  };
45
- export const Assertion1AssertionTypeEnum = {
46
- Text: 'TEXT'
47
- };
48
- export const Assertion1AccessorEnum = {
49
- Body: 'body',
50
- Headers: 'headers',
51
- Status: 'status'
52
- };
53
- export const Assertion1AnyOfAssertionTypeEnum = {
45
+ export const AssertionAnyOfAssertionTypeEnum = {
54
46
  Json: 'JSON'
55
47
  };
56
- export const Assertion1AnyOfAccessorEnum = {
48
+ export const AssertionAnyOfAccessorEnum = {
57
49
  Body: 'body',
58
50
  Headers: 'headers',
59
51
  Status: 'status'
60
52
  };
61
- export const Assertion1AnyOf1AssertionTypeEnum = {
53
+ export const AssertionAnyOf1AssertionTypeEnum = {
62
54
  Xml: 'XML'
63
55
  };
64
- export const Assertion1AnyOf2AssertionTypeEnum = {
56
+ export const AssertionAnyOf2AssertionTypeEnum = {
65
57
  Text: 'TEXT'
66
58
  };
67
59
  export const AssertionsTypeEnum = {
68
60
  Assertion: 'ASSERTION'
69
61
  };
70
- export const Assertions1TypeEnum = {
71
- Assertion: 'ASSERTION'
62
+ export const AssertionsAssertionsInnerAssertionTypeEnum = {
63
+ Text: 'TEXT'
64
+ };
65
+ export const AssertionsAssertionsInnerAccessorEnum = {
66
+ Body: 'body',
67
+ Headers: 'headers',
68
+ Status: 'status'
69
+ };
70
+ export const AssertionsAssertionsInnerAnyOfAssertionTypeEnum = {
71
+ Json: 'JSON'
72
+ };
73
+ export const AssertionsAssertionsInnerAnyOfAccessorEnum = {
74
+ Body: 'body',
75
+ Headers: 'headers',
76
+ Status: 'status'
77
+ };
78
+ export const AssertionsAssertionsInnerAnyOfAllOfPredicateOperatorEnum = {
79
+ Equal: 'EQUAL',
80
+ NotEqual: 'NOT_EQUAL',
81
+ GreaterThan: 'GREATER_THAN',
82
+ LessThan: 'LESS_THAN',
83
+ GreaterThanOrEqual: 'GREATER_THAN_OR_EQUAL',
84
+ LessThanOrEqual: 'LESS_THAN_OR_EQUAL',
85
+ Contains: 'CONTAINS',
86
+ NotContains: 'NOT_CONTAINS',
87
+ StartsWith: 'STARTS_WITH',
88
+ EndsWith: 'ENDS_WITH',
89
+ NotStartsWith: 'NOT_STARTS_WITH',
90
+ NotEndsWith: 'NOT_ENDS_WITH'
91
+ };
92
+ export const AssertionsAssertionsInnerAnyOfAllOfPredicateAnyOfOperatorEnum = {
93
+ Equal: 'EQUAL',
94
+ NotEqual: 'NOT_EQUAL',
95
+ GreaterThan: 'GREATER_THAN',
96
+ LessThan: 'LESS_THAN',
97
+ GreaterThanOrEqual: 'GREATER_THAN_OR_EQUAL',
98
+ LessThanOrEqual: 'LESS_THAN_OR_EQUAL',
99
+ Contains: 'CONTAINS',
100
+ NotContains: 'NOT_CONTAINS',
101
+ StartsWith: 'STARTS_WITH',
102
+ EndsWith: 'ENDS_WITH',
103
+ NotStartsWith: 'NOT_STARTS_WITH',
104
+ NotEndsWith: 'NOT_ENDS_WITH'
72
105
  };
73
106
  export const BinaryPredicateOperatorEnum = {
74
107
  Equal: 'EQUAL',
@@ -131,28 +164,6 @@ export const EndpointResponseFormatEnum = {
131
164
  Xml: 'XML',
132
165
  Text: 'TEXT'
133
166
  };
134
- export const Endpoint1TypeEnum = {
135
- Endpoint: 'ENDPOINT'
136
- };
137
- export const Endpoint1MethodEnum = {
138
- Get: 'GET',
139
- Post: 'POST',
140
- Put: 'PUT',
141
- Delete: 'DELETE',
142
- Patch: 'PATCH',
143
- Head: 'HEAD',
144
- Options: 'OPTIONS',
145
- Connect: 'CONNECT',
146
- Trace: 'TRACE'
147
- };
148
- export const Endpoint1ResponseFormatEnum = {
149
- Json: 'JSON',
150
- Xml: 'XML',
151
- Text: 'TEXT'
152
- };
153
- export const Endpoint1BaseTypeEnum = {
154
- Target: 'target'
155
- };
156
167
  export const FrequencyUnitEnum = {
157
168
  Minute: 'MINUTE',
158
169
  Hour: 'HOUR',
@@ -193,26 +204,13 @@ export const JSONAssertion1PredicateOperatorEnum = {
193
204
  NotStartsWith: 'NOT_STARTS_WITH',
194
205
  NotEndsWith: 'NOT_ENDS_WITH'
195
206
  };
196
- export const Node1TypeEnum = {
197
- Endpoint: 'ENDPOINT',
198
- Wait: 'WAIT',
199
- Assertion: 'ASSERTION'
200
- };
201
- export const Node1MethodEnum = {
202
- Get: 'GET',
203
- Post: 'POST',
204
- Put: 'PUT',
205
- Delete: 'DELETE',
206
- Patch: 'PATCH',
207
- Head: 'HEAD',
208
- Options: 'OPTIONS',
209
- Connect: 'CONNECT',
210
- Trace: 'TRACE'
207
+ export const PlanPostRequestVersionEnum = {
208
+ _10: '1.0'
211
209
  };
212
- export const Node1ResponseFormatEnum = {
213
- Json: 'JSON',
214
- Xml: 'XML',
215
- Text: 'TEXT'
210
+ export const PlanPostRequestFrequencyUnitEnum = {
211
+ Minute: 'MINUTE',
212
+ Hour: 'HOUR',
213
+ Day: 'DAY'
216
214
  };
217
215
  export const ResponseFormat = {
218
216
  Json: 'JSON',
@@ -261,9 +259,6 @@ export const UnaryPredicate = {
261
259
  export const WaitTypeEnum = {
262
260
  Wait: 'WAIT'
263
261
  };
264
- export const Wait1TypeEnum = {
265
- Wait: 'WAIT'
266
- };
267
262
  /**
268
263
  * AgentsApi - axios parameter creator
269
264
  */
@@ -608,19 +603,17 @@ export const AgentsGetStatusEnum = {
608
603
  Offline: 'offline'
609
604
  };
610
605
  /**
611
- * ConfigApi - axios parameter creator
606
+ * DefaultApi - axios parameter creator
612
607
  */
613
- export const ConfigApiAxiosParamCreator = function (configuration) {
608
+ export const DefaultApiAxiosParamCreator = function (configuration) {
614
609
  return {
615
610
  /**
616
611
  *
617
- * @param {string} [organizationId]
618
- * @param {string} [environment]
619
612
  * @param {*} [options] Override http request option.
620
613
  * @throws {RequiredError}
621
614
  */
622
- configGet: (organizationId_1, environment_1, ...args_1) => __awaiter(this, [organizationId_1, environment_1, ...args_1], void 0, function* (organizationId, environment, options = {}) {
623
- const localVarPath = `/config/`;
615
+ rootGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
616
+ const localVarPath = `/`;
624
617
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
625
618
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
626
619
  let baseOptions;
@@ -630,12 +623,106 @@ export const ConfigApiAxiosParamCreator = function (configuration) {
630
623
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
631
624
  const localVarHeaderParameter = {};
632
625
  const localVarQueryParameter = {};
633
- if (organizationId !== undefined) {
634
- localVarQueryParameter['organizationId'] = organizationId;
626
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
627
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
628
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
629
+ return {
630
+ url: toPathString(localVarUrlObj),
631
+ options: localVarRequestOptions,
632
+ };
633
+ }),
634
+ };
635
+ };
636
+ /**
637
+ * DefaultApi - functional programming interface
638
+ */
639
+ export const DefaultApiFp = function (configuration) {
640
+ const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration);
641
+ return {
642
+ /**
643
+ *
644
+ * @param {*} [options] Override http request option.
645
+ * @throws {RequiredError}
646
+ */
647
+ rootGet(options) {
648
+ return __awaiter(this, void 0, void 0, function* () {
649
+ var _a, _b, _c;
650
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.rootGet(options);
651
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
652
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.rootGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
653
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
654
+ });
655
+ },
656
+ };
657
+ };
658
+ /**
659
+ * DefaultApi - factory interface
660
+ */
661
+ export const DefaultApiFactory = function (configuration, basePath, axios) {
662
+ const localVarFp = DefaultApiFp(configuration);
663
+ return {
664
+ /**
665
+ *
666
+ * @param {*} [options] Override http request option.
667
+ * @throws {RequiredError}
668
+ */
669
+ rootGet(options) {
670
+ return localVarFp.rootGet(options).then((request) => request(axios, basePath));
671
+ },
672
+ };
673
+ };
674
+ /**
675
+ * DefaultApi - object-oriented interface
676
+ */
677
+ export class DefaultApi extends BaseAPI {
678
+ /**
679
+ *
680
+ * @param {*} [options] Override http request option.
681
+ * @throws {RequiredError}
682
+ */
683
+ rootGet(options) {
684
+ return DefaultApiFp(this.configuration).rootGet(options).then((request) => request(this.axios, this.basePath));
685
+ }
686
+ }
687
+ /**
688
+ * PlanApi - axios parameter creator
689
+ */
690
+ export const PlanApiAxiosParamCreator = function (configuration) {
691
+ return {
692
+ /**
693
+ *
694
+ * @param {string} projectId
695
+ * @param {string} environment
696
+ * @param {string} name
697
+ * @param {*} [options] Override http request option.
698
+ * @throws {RequiredError}
699
+ */
700
+ planByNameGet: (projectId_1, environment_1, name_1, ...args_1) => __awaiter(this, [projectId_1, environment_1, name_1, ...args_1], void 0, function* (projectId, environment, name, options = {}) {
701
+ // verify required parameter 'projectId' is not null or undefined
702
+ assertParamExists('planByNameGet', 'projectId', projectId);
703
+ // verify required parameter 'environment' is not null or undefined
704
+ assertParamExists('planByNameGet', 'environment', environment);
705
+ // verify required parameter 'name' is not null or undefined
706
+ assertParamExists('planByNameGet', 'name', name);
707
+ const localVarPath = `/plan/by-name`;
708
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
709
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
710
+ let baseOptions;
711
+ if (configuration) {
712
+ baseOptions = configuration.baseOptions;
713
+ }
714
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
715
+ const localVarHeaderParameter = {};
716
+ const localVarQueryParameter = {};
717
+ if (projectId !== undefined) {
718
+ localVarQueryParameter['projectId'] = projectId;
635
719
  }
636
720
  if (environment !== undefined) {
637
721
  localVarQueryParameter['environment'] = environment;
638
722
  }
723
+ if (name !== undefined) {
724
+ localVarQueryParameter['name'] = name;
725
+ }
639
726
  localVarHeaderParameter['Accept'] = 'application/json';
640
727
  setSearchParams(localVarUrlObj, localVarQueryParameter);
641
728
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -647,32 +734,36 @@ export const ConfigApiAxiosParamCreator = function (configuration) {
647
734
  }),
648
735
  /**
649
736
  *
650
- * @param {string} organizationId
651
- * @param {string} environment
652
- * @param {string} targetKey
737
+ * @param {string} [projectId]
738
+ * @param {string} [environment]
739
+ * @param {number} [limit]
740
+ * @param {number} [offset]
653
741
  * @param {*} [options] Override http request option.
654
742
  * @throws {RequiredError}
655
743
  */
656
- configOrganizationIdEnvironmentTargetsTargetKeyDelete: (organizationId_1, environment_1, targetKey_1, ...args_1) => __awaiter(this, [organizationId_1, environment_1, targetKey_1, ...args_1], void 0, function* (organizationId, environment, targetKey, options = {}) {
657
- // verify required parameter 'organizationId' is not null or undefined
658
- assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyDelete', 'organizationId', organizationId);
659
- // verify required parameter 'environment' is not null or undefined
660
- assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyDelete', 'environment', environment);
661
- // verify required parameter 'targetKey' is not null or undefined
662
- assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyDelete', 'targetKey', targetKey);
663
- const localVarPath = `/config/{organizationId}/{environment}/targets/{targetKey}`
664
- .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
665
- .replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
666
- .replace(`{${"targetKey"}}`, encodeURIComponent(String(targetKey)));
744
+ planGet: (projectId_1, environment_1, limit_1, offset_1, ...args_1) => __awaiter(this, [projectId_1, environment_1, limit_1, offset_1, ...args_1], void 0, function* (projectId, environment, limit, offset, options = {}) {
745
+ const localVarPath = `/plan/`;
667
746
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
668
747
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
669
748
  let baseOptions;
670
749
  if (configuration) {
671
750
  baseOptions = configuration.baseOptions;
672
751
  }
673
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
752
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
674
753
  const localVarHeaderParameter = {};
675
754
  const localVarQueryParameter = {};
755
+ if (projectId !== undefined) {
756
+ localVarQueryParameter['projectId'] = projectId;
757
+ }
758
+ if (environment !== undefined) {
759
+ localVarQueryParameter['environment'] = environment;
760
+ }
761
+ if (limit !== undefined) {
762
+ localVarQueryParameter['limit'] = limit;
763
+ }
764
+ if (offset !== undefined) {
765
+ localVarQueryParameter['offset'] = offset;
766
+ }
676
767
  localVarHeaderParameter['Accept'] = 'application/json';
677
768
  setSearchParams(localVarUrlObj, localVarQueryParameter);
678
769
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -684,30 +775,22 @@ export const ConfigApiAxiosParamCreator = function (configuration) {
684
775
  }),
685
776
  /**
686
777
  *
687
- * @param {string} organizationId
688
- * @param {string} environment
689
- * @param {string} targetKey
778
+ * @param {string} id
690
779
  * @param {*} [options] Override http request option.
691
780
  * @throws {RequiredError}
692
781
  */
693
- configOrganizationIdEnvironmentTargetsTargetKeyGet: (organizationId_1, environment_1, targetKey_1, ...args_1) => __awaiter(this, [organizationId_1, environment_1, targetKey_1, ...args_1], void 0, function* (organizationId, environment, targetKey, options = {}) {
694
- // verify required parameter 'organizationId' is not null or undefined
695
- assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyGet', 'organizationId', organizationId);
696
- // verify required parameter 'environment' is not null or undefined
697
- assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyGet', 'environment', environment);
698
- // verify required parameter 'targetKey' is not null or undefined
699
- assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyGet', 'targetKey', targetKey);
700
- const localVarPath = `/config/{organizationId}/{environment}/targets/{targetKey}`
701
- .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
702
- .replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
703
- .replace(`{${"targetKey"}}`, encodeURIComponent(String(targetKey)));
782
+ planIdDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
783
+ // verify required parameter 'id' is not null or undefined
784
+ assertParamExists('planIdDelete', 'id', id);
785
+ const localVarPath = `/plan/{id}`
786
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
704
787
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
705
788
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
706
789
  let baseOptions;
707
790
  if (configuration) {
708
791
  baseOptions = configuration.baseOptions;
709
792
  }
710
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
793
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
711
794
  const localVarHeaderParameter = {};
712
795
  const localVarQueryParameter = {};
713
796
  localVarHeaderParameter['Accept'] = 'application/json';
@@ -721,26 +804,18 @@ export const ConfigApiAxiosParamCreator = function (configuration) {
721
804
  }),
722
805
  /**
723
806
  *
724
- * @param {string} organizationId
725
- * @param {string} environment
726
- * @param {string} targetKey
727
- * @param {ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest} configOrganizationIdEnvironmentTargetsTargetKeyPutRequest
807
+ * @param {string} id
808
+ * @param {PlanPostRequest} planPostRequest
728
809
  * @param {*} [options] Override http request option.
729
810
  * @throws {RequiredError}
730
811
  */
731
- configOrganizationIdEnvironmentTargetsTargetKeyPut: (organizationId_1, environment_1, targetKey_1, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest_1, ...args_1) => __awaiter(this, [organizationId_1, environment_1, targetKey_1, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest_1, ...args_1], void 0, function* (organizationId, environment, targetKey, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options = {}) {
732
- // verify required parameter 'organizationId' is not null or undefined
733
- assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyPut', 'organizationId', organizationId);
734
- // verify required parameter 'environment' is not null or undefined
735
- assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyPut', 'environment', environment);
736
- // verify required parameter 'targetKey' is not null or undefined
737
- assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyPut', 'targetKey', targetKey);
738
- // verify required parameter 'configOrganizationIdEnvironmentTargetsTargetKeyPutRequest' is not null or undefined
739
- assertParamExists('configOrganizationIdEnvironmentTargetsTargetKeyPut', 'configOrganizationIdEnvironmentTargetsTargetKeyPutRequest', configOrganizationIdEnvironmentTargetsTargetKeyPutRequest);
740
- const localVarPath = `/config/{organizationId}/{environment}/targets/{targetKey}`
741
- .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
742
- .replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
743
- .replace(`{${"targetKey"}}`, encodeURIComponent(String(targetKey)));
812
+ planIdPut: (id_1, planPostRequest_1, ...args_1) => __awaiter(this, [id_1, planPostRequest_1, ...args_1], void 0, function* (id, planPostRequest, options = {}) {
813
+ // verify required parameter 'id' is not null or undefined
814
+ assertParamExists('planIdPut', 'id', id);
815
+ // verify required parameter 'planPostRequest' is not null or undefined
816
+ assertParamExists('planIdPut', 'planPostRequest', planPostRequest);
817
+ const localVarPath = `/plan/{id}`
818
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
744
819
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
745
820
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
746
821
  let baseOptions;
@@ -755,7 +830,7 @@ export const ConfigApiAxiosParamCreator = function (configuration) {
755
830
  setSearchParams(localVarUrlObj, localVarQueryParameter);
756
831
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
757
832
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
758
- localVarRequestOptions.data = serializeDataIfNeeded(configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, localVarRequestOptions, configuration);
833
+ localVarRequestOptions.data = serializeDataIfNeeded(planPostRequest, localVarRequestOptions, configuration);
759
834
  return {
760
835
  url: toPathString(localVarUrlObj),
761
836
  options: localVarRequestOptions,
@@ -763,36 +838,29 @@ export const ConfigApiAxiosParamCreator = function (configuration) {
763
838
  }),
764
839
  /**
765
840
  *
766
- * @param {string} organizationId
767
- * @param {string} environment
841
+ * @param {PlanPostRequest} planPostRequest
768
842
  * @param {*} [options] Override http request option.
769
843
  * @throws {RequiredError}
770
844
  */
771
- configSingleGet: (organizationId_1, environment_1, ...args_1) => __awaiter(this, [organizationId_1, environment_1, ...args_1], void 0, function* (organizationId, environment, options = {}) {
772
- // verify required parameter 'organizationId' is not null or undefined
773
- assertParamExists('configSingleGet', 'organizationId', organizationId);
774
- // verify required parameter 'environment' is not null or undefined
775
- assertParamExists('configSingleGet', 'environment', environment);
776
- const localVarPath = `/config/single`;
845
+ planPost: (planPostRequest_1, ...args_1) => __awaiter(this, [planPostRequest_1, ...args_1], void 0, function* (planPostRequest, options = {}) {
846
+ // verify required parameter 'planPostRequest' is not null or undefined
847
+ assertParamExists('planPost', 'planPostRequest', planPostRequest);
848
+ const localVarPath = `/plan/`;
777
849
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
778
850
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
779
851
  let baseOptions;
780
852
  if (configuration) {
781
853
  baseOptions = configuration.baseOptions;
782
854
  }
783
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
855
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
784
856
  const localVarHeaderParameter = {};
785
857
  const localVarQueryParameter = {};
786
- if (organizationId !== undefined) {
787
- localVarQueryParameter['organizationId'] = organizationId;
788
- }
789
- if (environment !== undefined) {
790
- localVarQueryParameter['environment'] = environment;
791
- }
858
+ localVarHeaderParameter['Content-Type'] = 'application/json';
792
859
  localVarHeaderParameter['Accept'] = 'application/json';
793
860
  setSearchParams(localVarUrlObj, localVarQueryParameter);
794
861
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
795
862
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
863
+ localVarRequestOptions.data = serializeDataIfNeeded(planPostRequest, localVarRequestOptions, configuration);
796
864
  return {
797
865
  url: toPathString(localVarUrlObj),
798
866
  options: localVarRequestOptions,
@@ -801,463 +869,207 @@ export const ConfigApiAxiosParamCreator = function (configuration) {
801
869
  };
802
870
  };
803
871
  /**
804
- * ConfigApi - functional programming interface
872
+ * PlanApi - functional programming interface
805
873
  */
806
- export const ConfigApiFp = function (configuration) {
807
- const localVarAxiosParamCreator = ConfigApiAxiosParamCreator(configuration);
874
+ export const PlanApiFp = function (configuration) {
875
+ const localVarAxiosParamCreator = PlanApiAxiosParamCreator(configuration);
808
876
  return {
809
877
  /**
810
878
  *
811
- * @param {string} [organizationId]
812
- * @param {string} [environment]
879
+ * @param {string} projectId
880
+ * @param {string} environment
881
+ * @param {string} name
813
882
  * @param {*} [options] Override http request option.
814
883
  * @throws {RequiredError}
815
884
  */
816
- configGet(organizationId, environment, options) {
885
+ planByNameGet(projectId, environment, name, options) {
817
886
  return __awaiter(this, void 0, void 0, function* () {
818
887
  var _a, _b, _c;
819
- const localVarAxiosArgs = yield localVarAxiosParamCreator.configGet(organizationId, environment, options);
888
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.planByNameGet(projectId, environment, name, options);
820
889
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
821
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ConfigApi.configGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
890
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlanApi.planByNameGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
822
891
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
823
892
  });
824
893
  },
825
894
  /**
826
895
  *
827
- * @param {string} organizationId
828
- * @param {string} environment
829
- * @param {string} targetKey
896
+ * @param {string} [projectId]
897
+ * @param {string} [environment]
898
+ * @param {number} [limit]
899
+ * @param {number} [offset]
830
900
  * @param {*} [options] Override http request option.
831
901
  * @throws {RequiredError}
832
902
  */
833
- configOrganizationIdEnvironmentTargetsTargetKeyDelete(organizationId, environment, targetKey, options) {
903
+ planGet(projectId, environment, limit, offset, options) {
834
904
  return __awaiter(this, void 0, void 0, function* () {
835
905
  var _a, _b, _c;
836
- const localVarAxiosArgs = yield localVarAxiosParamCreator.configOrganizationIdEnvironmentTargetsTargetKeyDelete(organizationId, environment, targetKey, options);
906
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.planGet(projectId, environment, limit, offset, options);
837
907
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
838
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ConfigApi.configOrganizationIdEnvironmentTargetsTargetKeyDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
908
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlanApi.planGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
839
909
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
840
910
  });
841
911
  },
842
912
  /**
843
913
  *
844
- * @param {string} organizationId
845
- * @param {string} environment
846
- * @param {string} targetKey
914
+ * @param {string} id
847
915
  * @param {*} [options] Override http request option.
848
916
  * @throws {RequiredError}
849
917
  */
850
- configOrganizationIdEnvironmentTargetsTargetKeyGet(organizationId, environment, targetKey, options) {
918
+ planIdDelete(id, options) {
851
919
  return __awaiter(this, void 0, void 0, function* () {
852
920
  var _a, _b, _c;
853
- const localVarAxiosArgs = yield localVarAxiosParamCreator.configOrganizationIdEnvironmentTargetsTargetKeyGet(organizationId, environment, targetKey, options);
921
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.planIdDelete(id, options);
854
922
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
855
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ConfigApi.configOrganizationIdEnvironmentTargetsTargetKeyGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
923
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlanApi.planIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
856
924
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
857
925
  });
858
926
  },
859
927
  /**
860
928
  *
861
- * @param {string} organizationId
862
- * @param {string} environment
863
- * @param {string} targetKey
864
- * @param {ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest} configOrganizationIdEnvironmentTargetsTargetKeyPutRequest
929
+ * @param {string} id
930
+ * @param {PlanPostRequest} planPostRequest
865
931
  * @param {*} [options] Override http request option.
866
932
  * @throws {RequiredError}
867
933
  */
868
- configOrganizationIdEnvironmentTargetsTargetKeyPut(organizationId, environment, targetKey, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options) {
934
+ planIdPut(id, planPostRequest, options) {
869
935
  return __awaiter(this, void 0, void 0, function* () {
870
936
  var _a, _b, _c;
871
- const localVarAxiosArgs = yield localVarAxiosParamCreator.configOrganizationIdEnvironmentTargetsTargetKeyPut(organizationId, environment, targetKey, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options);
937
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.planIdPut(id, planPostRequest, options);
872
938
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
873
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ConfigApi.configOrganizationIdEnvironmentTargetsTargetKeyPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
939
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlanApi.planIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
874
940
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
875
941
  });
876
942
  },
877
943
  /**
878
944
  *
879
- * @param {string} organizationId
880
- * @param {string} environment
945
+ * @param {PlanPostRequest} planPostRequest
881
946
  * @param {*} [options] Override http request option.
882
947
  * @throws {RequiredError}
883
948
  */
884
- configSingleGet(organizationId, environment, options) {
949
+ planPost(planPostRequest, options) {
885
950
  return __awaiter(this, void 0, void 0, function* () {
886
951
  var _a, _b, _c;
887
- const localVarAxiosArgs = yield localVarAxiosParamCreator.configSingleGet(organizationId, environment, options);
952
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.planPost(planPostRequest, options);
888
953
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
889
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ConfigApi.configSingleGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
954
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlanApi.planPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
890
955
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
891
956
  });
892
957
  },
893
958
  };
894
959
  };
895
960
  /**
896
- * ConfigApi - factory interface
961
+ * PlanApi - factory interface
897
962
  */
898
- export const ConfigApiFactory = function (configuration, basePath, axios) {
899
- const localVarFp = ConfigApiFp(configuration);
963
+ export const PlanApiFactory = function (configuration, basePath, axios) {
964
+ const localVarFp = PlanApiFp(configuration);
900
965
  return {
901
966
  /**
902
967
  *
903
- * @param {string} [organizationId]
904
- * @param {string} [environment]
968
+ * @param {string} projectId
969
+ * @param {string} environment
970
+ * @param {string} name
905
971
  * @param {*} [options] Override http request option.
906
972
  * @throws {RequiredError}
907
973
  */
908
- configGet(organizationId, environment, options) {
909
- return localVarFp.configGet(organizationId, environment, options).then((request) => request(axios, basePath));
974
+ planByNameGet(projectId, environment, name, options) {
975
+ return localVarFp.planByNameGet(projectId, environment, name, options).then((request) => request(axios, basePath));
910
976
  },
911
977
  /**
912
978
  *
913
- * @param {string} organizationId
914
- * @param {string} environment
915
- * @param {string} targetKey
979
+ * @param {string} [projectId]
980
+ * @param {string} [environment]
981
+ * @param {number} [limit]
982
+ * @param {number} [offset]
916
983
  * @param {*} [options] Override http request option.
917
984
  * @throws {RequiredError}
918
985
  */
919
- configOrganizationIdEnvironmentTargetsTargetKeyDelete(organizationId, environment, targetKey, options) {
920
- return localVarFp.configOrganizationIdEnvironmentTargetsTargetKeyDelete(organizationId, environment, targetKey, options).then((request) => request(axios, basePath));
986
+ planGet(projectId, environment, limit, offset, options) {
987
+ return localVarFp.planGet(projectId, environment, limit, offset, options).then((request) => request(axios, basePath));
921
988
  },
922
989
  /**
923
990
  *
924
- * @param {string} organizationId
925
- * @param {string} environment
926
- * @param {string} targetKey
991
+ * @param {string} id
927
992
  * @param {*} [options] Override http request option.
928
993
  * @throws {RequiredError}
929
994
  */
930
- configOrganizationIdEnvironmentTargetsTargetKeyGet(organizationId, environment, targetKey, options) {
931
- return localVarFp.configOrganizationIdEnvironmentTargetsTargetKeyGet(organizationId, environment, targetKey, options).then((request) => request(axios, basePath));
995
+ planIdDelete(id, options) {
996
+ return localVarFp.planIdDelete(id, options).then((request) => request(axios, basePath));
932
997
  },
933
998
  /**
934
999
  *
935
- * @param {string} organizationId
936
- * @param {string} environment
937
- * @param {string} targetKey
938
- * @param {ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest} configOrganizationIdEnvironmentTargetsTargetKeyPutRequest
1000
+ * @param {string} id
1001
+ * @param {PlanPostRequest} planPostRequest
939
1002
  * @param {*} [options] Override http request option.
940
1003
  * @throws {RequiredError}
941
1004
  */
942
- configOrganizationIdEnvironmentTargetsTargetKeyPut(organizationId, environment, targetKey, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options) {
943
- return localVarFp.configOrganizationIdEnvironmentTargetsTargetKeyPut(organizationId, environment, targetKey, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options).then((request) => request(axios, basePath));
1005
+ planIdPut(id, planPostRequest, options) {
1006
+ return localVarFp.planIdPut(id, planPostRequest, options).then((request) => request(axios, basePath));
944
1007
  },
945
1008
  /**
946
1009
  *
947
- * @param {string} organizationId
948
- * @param {string} environment
1010
+ * @param {PlanPostRequest} planPostRequest
949
1011
  * @param {*} [options] Override http request option.
950
1012
  * @throws {RequiredError}
951
1013
  */
952
- configSingleGet(organizationId, environment, options) {
953
- return localVarFp.configSingleGet(organizationId, environment, options).then((request) => request(axios, basePath));
1014
+ planPost(planPostRequest, options) {
1015
+ return localVarFp.planPost(planPostRequest, options).then((request) => request(axios, basePath));
954
1016
  },
955
1017
  };
956
1018
  };
957
1019
  /**
958
- * ConfigApi - object-oriented interface
1020
+ * PlanApi - object-oriented interface
959
1021
  */
960
- export class ConfigApi extends BaseAPI {
961
- /**
962
- *
963
- * @param {string} [organizationId]
964
- * @param {string} [environment]
965
- * @param {*} [options] Override http request option.
966
- * @throws {RequiredError}
967
- */
968
- configGet(organizationId, environment, options) {
969
- return ConfigApiFp(this.configuration).configGet(organizationId, environment, options).then((request) => request(this.axios, this.basePath));
970
- }
971
- /**
972
- *
973
- * @param {string} organizationId
974
- * @param {string} environment
975
- * @param {string} targetKey
976
- * @param {*} [options] Override http request option.
977
- * @throws {RequiredError}
978
- */
979
- configOrganizationIdEnvironmentTargetsTargetKeyDelete(organizationId, environment, targetKey, options) {
980
- return ConfigApiFp(this.configuration).configOrganizationIdEnvironmentTargetsTargetKeyDelete(organizationId, environment, targetKey, options).then((request) => request(this.axios, this.basePath));
981
- }
1022
+ export class PlanApi extends BaseAPI {
982
1023
  /**
983
1024
  *
984
- * @param {string} organizationId
1025
+ * @param {string} projectId
985
1026
  * @param {string} environment
986
- * @param {string} targetKey
1027
+ * @param {string} name
987
1028
  * @param {*} [options] Override http request option.
988
1029
  * @throws {RequiredError}
989
1030
  */
990
- configOrganizationIdEnvironmentTargetsTargetKeyGet(organizationId, environment, targetKey, options) {
991
- return ConfigApiFp(this.configuration).configOrganizationIdEnvironmentTargetsTargetKeyGet(organizationId, environment, targetKey, options).then((request) => request(this.axios, this.basePath));
1031
+ planByNameGet(projectId, environment, name, options) {
1032
+ return PlanApiFp(this.configuration).planByNameGet(projectId, environment, name, options).then((request) => request(this.axios, this.basePath));
992
1033
  }
993
1034
  /**
994
1035
  *
995
- * @param {string} organizationId
996
- * @param {string} environment
997
- * @param {string} targetKey
998
- * @param {ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest} configOrganizationIdEnvironmentTargetsTargetKeyPutRequest
1036
+ * @param {string} [projectId]
1037
+ * @param {string} [environment]
1038
+ * @param {number} [limit]
1039
+ * @param {number} [offset]
999
1040
  * @param {*} [options] Override http request option.
1000
1041
  * @throws {RequiredError}
1001
1042
  */
1002
- configOrganizationIdEnvironmentTargetsTargetKeyPut(organizationId, environment, targetKey, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options) {
1003
- return ConfigApiFp(this.configuration).configOrganizationIdEnvironmentTargetsTargetKeyPut(organizationId, environment, targetKey, configOrganizationIdEnvironmentTargetsTargetKeyPutRequest, options).then((request) => request(this.axios, this.basePath));
1043
+ planGet(projectId, environment, limit, offset, options) {
1044
+ return PlanApiFp(this.configuration).planGet(projectId, environment, limit, offset, options).then((request) => request(this.axios, this.basePath));
1004
1045
  }
1005
1046
  /**
1006
1047
  *
1007
- * @param {string} organizationId
1008
- * @param {string} environment
1048
+ * @param {string} id
1009
1049
  * @param {*} [options] Override http request option.
1010
1050
  * @throws {RequiredError}
1011
1051
  */
1012
- configSingleGet(organizationId, environment, options) {
1013
- return ConfigApiFp(this.configuration).configSingleGet(organizationId, environment, options).then((request) => request(this.axios, this.basePath));
1052
+ planIdDelete(id, options) {
1053
+ return PlanApiFp(this.configuration).planIdDelete(id, options).then((request) => request(this.axios, this.basePath));
1014
1054
  }
1015
- }
1016
- /**
1017
- * DefaultApi - axios parameter creator
1018
- */
1019
- export const DefaultApiAxiosParamCreator = function (configuration) {
1020
- return {
1021
- /**
1022
- *
1023
- * @param {*} [options] Override http request option.
1024
- * @throws {RequiredError}
1025
- */
1026
- rootGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1027
- const localVarPath = `/`;
1028
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1029
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1030
- let baseOptions;
1031
- if (configuration) {
1032
- baseOptions = configuration.baseOptions;
1033
- }
1034
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1035
- const localVarHeaderParameter = {};
1036
- const localVarQueryParameter = {};
1037
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1038
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1039
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1040
- return {
1041
- url: toPathString(localVarUrlObj),
1042
- options: localVarRequestOptions,
1043
- };
1044
- }),
1045
- };
1046
- };
1047
- /**
1048
- * DefaultApi - functional programming interface
1049
- */
1050
- export const DefaultApiFp = function (configuration) {
1051
- const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration);
1052
- return {
1053
- /**
1054
- *
1055
- * @param {*} [options] Override http request option.
1056
- * @throws {RequiredError}
1057
- */
1058
- rootGet(options) {
1059
- return __awaiter(this, void 0, void 0, function* () {
1060
- var _a, _b, _c;
1061
- const localVarAxiosArgs = yield localVarAxiosParamCreator.rootGet(options);
1062
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1063
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.rootGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1064
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1065
- });
1066
- },
1067
- };
1068
- };
1069
- /**
1070
- * DefaultApi - factory interface
1071
- */
1072
- export const DefaultApiFactory = function (configuration, basePath, axios) {
1073
- const localVarFp = DefaultApiFp(configuration);
1074
- return {
1075
- /**
1076
- *
1077
- * @param {*} [options] Override http request option.
1078
- * @throws {RequiredError}
1079
- */
1080
- rootGet(options) {
1081
- return localVarFp.rootGet(options).then((request) => request(axios, basePath));
1082
- },
1083
- };
1084
- };
1085
- /**
1086
- * DefaultApi - object-oriented interface
1087
- */
1088
- export class DefaultApi extends BaseAPI {
1089
1055
  /**
1090
1056
  *
1057
+ * @param {string} id
1058
+ * @param {PlanPostRequest} planPostRequest
1091
1059
  * @param {*} [options] Override http request option.
1092
1060
  * @throws {RequiredError}
1093
1061
  */
1094
- rootGet(options) {
1095
- return DefaultApiFp(this.configuration).rootGet(options).then((request) => request(this.axios, this.basePath));
1096
- }
1097
- }
1098
- /**
1099
- * PlanApi - axios parameter creator
1100
- */
1101
- export const PlanApiAxiosParamCreator = function (configuration) {
1102
- return {
1103
- /**
1104
- *
1105
- * @param {string} [projectId]
1106
- * @param {number} [limit]
1107
- * @param {number} [offset]
1108
- * @param {*} [options] Override http request option.
1109
- * @throws {RequiredError}
1110
- */
1111
- planGet: (projectId_1, limit_1, offset_1, ...args_1) => __awaiter(this, [projectId_1, limit_1, offset_1, ...args_1], void 0, function* (projectId, limit, offset, options = {}) {
1112
- const localVarPath = `/plan/`;
1113
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1114
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1115
- let baseOptions;
1116
- if (configuration) {
1117
- baseOptions = configuration.baseOptions;
1118
- }
1119
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1120
- const localVarHeaderParameter = {};
1121
- const localVarQueryParameter = {};
1122
- if (projectId !== undefined) {
1123
- localVarQueryParameter['projectId'] = projectId;
1124
- }
1125
- if (limit !== undefined) {
1126
- localVarQueryParameter['limit'] = limit;
1127
- }
1128
- if (offset !== undefined) {
1129
- localVarQueryParameter['offset'] = offset;
1130
- }
1131
- localVarHeaderParameter['Accept'] = 'application/json';
1132
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1133
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1134
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1135
- return {
1136
- url: toPathString(localVarUrlObj),
1137
- options: localVarRequestOptions,
1138
- };
1139
- }),
1140
- /**
1141
- *
1142
- * @param {TestPlanV1} [testPlanV1]
1143
- * @param {*} [options] Override http request option.
1144
- * @throws {RequiredError}
1145
- */
1146
- planPost: (testPlanV1_1, ...args_1) => __awaiter(this, [testPlanV1_1, ...args_1], void 0, function* (testPlanV1, options = {}) {
1147
- const localVarPath = `/plan/`;
1148
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1149
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1150
- let baseOptions;
1151
- if (configuration) {
1152
- baseOptions = configuration.baseOptions;
1153
- }
1154
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1155
- const localVarHeaderParameter = {};
1156
- const localVarQueryParameter = {};
1157
- localVarHeaderParameter['Content-Type'] = 'application/json';
1158
- localVarHeaderParameter['Accept'] = 'application/json';
1159
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1160
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1161
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1162
- localVarRequestOptions.data = serializeDataIfNeeded(testPlanV1, localVarRequestOptions, configuration);
1163
- return {
1164
- url: toPathString(localVarUrlObj),
1165
- options: localVarRequestOptions,
1166
- };
1167
- }),
1168
- };
1169
- };
1170
- /**
1171
- * PlanApi - functional programming interface
1172
- */
1173
- export const PlanApiFp = function (configuration) {
1174
- const localVarAxiosParamCreator = PlanApiAxiosParamCreator(configuration);
1175
- return {
1176
- /**
1177
- *
1178
- * @param {string} [projectId]
1179
- * @param {number} [limit]
1180
- * @param {number} [offset]
1181
- * @param {*} [options] Override http request option.
1182
- * @throws {RequiredError}
1183
- */
1184
- planGet(projectId, limit, offset, options) {
1185
- return __awaiter(this, void 0, void 0, function* () {
1186
- var _a, _b, _c;
1187
- const localVarAxiosArgs = yield localVarAxiosParamCreator.planGet(projectId, limit, offset, options);
1188
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1189
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlanApi.planGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1190
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1191
- });
1192
- },
1193
- /**
1194
- *
1195
- * @param {TestPlanV1} [testPlanV1]
1196
- * @param {*} [options] Override http request option.
1197
- * @throws {RequiredError}
1198
- */
1199
- planPost(testPlanV1, options) {
1200
- return __awaiter(this, void 0, void 0, function* () {
1201
- var _a, _b, _c;
1202
- const localVarAxiosArgs = yield localVarAxiosParamCreator.planPost(testPlanV1, options);
1203
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1204
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlanApi.planPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1205
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1206
- });
1207
- },
1208
- };
1209
- };
1210
- /**
1211
- * PlanApi - factory interface
1212
- */
1213
- export const PlanApiFactory = function (configuration, basePath, axios) {
1214
- const localVarFp = PlanApiFp(configuration);
1215
- return {
1216
- /**
1217
- *
1218
- * @param {string} [projectId]
1219
- * @param {number} [limit]
1220
- * @param {number} [offset]
1221
- * @param {*} [options] Override http request option.
1222
- * @throws {RequiredError}
1223
- */
1224
- planGet(projectId, limit, offset, options) {
1225
- return localVarFp.planGet(projectId, limit, offset, options).then((request) => request(axios, basePath));
1226
- },
1227
- /**
1228
- *
1229
- * @param {TestPlanV1} [testPlanV1]
1230
- * @param {*} [options] Override http request option.
1231
- * @throws {RequiredError}
1232
- */
1233
- planPost(testPlanV1, options) {
1234
- return localVarFp.planPost(testPlanV1, options).then((request) => request(axios, basePath));
1235
- },
1236
- };
1237
- };
1238
- /**
1239
- * PlanApi - object-oriented interface
1240
- */
1241
- export class PlanApi extends BaseAPI {
1242
- /**
1243
- *
1244
- * @param {string} [projectId]
1245
- * @param {number} [limit]
1246
- * @param {number} [offset]
1247
- * @param {*} [options] Override http request option.
1248
- * @throws {RequiredError}
1249
- */
1250
- planGet(projectId, limit, offset, options) {
1251
- return PlanApiFp(this.configuration).planGet(projectId, limit, offset, options).then((request) => request(this.axios, this.basePath));
1062
+ planIdPut(id, planPostRequest, options) {
1063
+ return PlanApiFp(this.configuration).planIdPut(id, planPostRequest, options).then((request) => request(this.axios, this.basePath));
1252
1064
  }
1253
1065
  /**
1254
1066
  *
1255
- * @param {TestPlanV1} [testPlanV1]
1067
+ * @param {PlanPostRequest} planPostRequest
1256
1068
  * @param {*} [options] Override http request option.
1257
1069
  * @throws {RequiredError}
1258
1070
  */
1259
- planPost(testPlanV1, options) {
1260
- return PlanApiFp(this.configuration).planPost(testPlanV1, options).then((request) => request(this.axios, this.basePath));
1071
+ planPost(planPostRequest, options) {
1072
+ return PlanApiFp(this.configuration).planPost(planPostRequest, options).then((request) => request(this.axios, this.basePath));
1261
1073
  }
1262
1074
  }
1263
1075
  /**