sailpoint-api-client 1.0.2 → 1.0.3
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/beta/.openapi-generator/FILES +1 -0
- package/beta/README.md +2 -2
- package/beta/api.ts +1675 -614
- package/beta/common.ts +2 -1
- package/beta/package.json +1 -1
- package/cc/.openapi-generator/FILES +1 -0
- package/cc/README.md +2 -2
- package/cc/api.ts +56 -46
- package/cc/common.ts +2 -1
- package/cc/package.json +1 -1
- package/configuration.ts +3 -3
- package/dist/beta/api.d.ts +1213 -499
- package/dist/beta/api.js +1258 -490
- package/dist/beta/api.js.map +1 -1
- package/dist/beta/common.js +2 -1
- package/dist/beta/common.js.map +1 -1
- package/dist/cc/api.d.ts +40 -40
- package/dist/cc/api.js +31 -26
- package/dist/cc/api.js.map +1 -1
- package/dist/cc/common.js +2 -1
- package/dist/cc/common.js.map +1 -1
- package/dist/configuration.js +3 -3
- package/dist/configuration.js.map +1 -1
- package/dist/index.spec.d.ts +1 -0
- package/dist/index.spec.js +217 -0
- package/dist/index.spec.js.map +1 -0
- package/dist/paginator.js +2 -2
- package/dist/paginator.js.map +1 -1
- package/dist/v2/common.js +2 -1
- package/dist/v2/common.js.map +1 -1
- package/dist/v3/api.d.ts +728 -148
- package/dist/v3/api.js +1219 -121
- package/dist/v3/api.js.map +1 -1
- package/dist/v3/common.js +2 -1
- package/dist/v3/common.js.map +1 -1
- package/index.spec.ts +119 -0
- package/package.json +12 -2
- package/paginator.ts +2 -2
- package/tsconfig.json +2 -1
- package/v2/.openapi-generator/FILES +1 -0
- package/v2/README.md +2 -2
- package/v2/common.ts +2 -1
- package/v2/package.json +1 -1
- package/v3/.openapi-generator/FILES +1 -0
- package/v3/README.md +2 -2
- package/v3/api.ts +1323 -262
- package/v3/common.ts +2 -1
- package/v3/package.json +1 -1
package/beta/common.ts
CHANGED
|
@@ -134,7 +134,8 @@ export const toPathString = function (url: URL) {
|
|
|
134
134
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
135
135
|
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
136
136
|
axiosRetry(globalAxios, configuration.retriesConfig)
|
|
137
|
-
axiosArgs.axiosOptions.headers['X-SailPoint-SDK'] = 'typescript-1.0.
|
|
137
|
+
axiosArgs.axiosOptions.headers['X-SailPoint-SDK'] = 'typescript-1.0.3'
|
|
138
|
+
axiosArgs.axiosOptions.headers['User-Agent'] = 'OpenAPI-Generator/1.0.3/ts'
|
|
138
139
|
const axiosRequestArgs = {...axiosArgs.axiosOptions, url: (configuration?.basePathBeta || basePath) + axiosArgs.url};
|
|
139
140
|
return axios.request<T, R>(axiosRequestArgs);
|
|
140
141
|
};
|
package/beta/package.json
CHANGED
package/cc/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## sailpoint-sdk@1.0.
|
|
1
|
+
## sailpoint-sdk@1.0.3
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install sailpoint-sdk@1.0.
|
|
39
|
+
npm install sailpoint-sdk@1.0.3 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/cc/api.ts
CHANGED
|
@@ -209,12 +209,14 @@ export const AccountsCCApiAxiosParamCreator = function (configuration?: Configur
|
|
|
209
209
|
/**
|
|
210
210
|
*
|
|
211
211
|
* @summary Remove Account
|
|
212
|
-
* @param {string}
|
|
212
|
+
* @param {string} id
|
|
213
213
|
* @param {*} [axiosOptions] Override http request option.
|
|
214
214
|
* @throws {RequiredError}
|
|
215
215
|
*/
|
|
216
|
-
removeAccount: async (id
|
|
217
|
-
|
|
216
|
+
removeAccount: async (id: string, axiosOptions: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
217
|
+
// verify required parameter 'id' is not null or undefined
|
|
218
|
+
assertParamExists('removeAccount', 'id', id)
|
|
219
|
+
const localVarPath = `/cc/api/account/remove/{id}`
|
|
218
220
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
219
221
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
220
222
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -269,11 +271,11 @@ export const AccountsCCApiFp = function(configuration?: Configuration) {
|
|
|
269
271
|
/**
|
|
270
272
|
*
|
|
271
273
|
* @summary Remove Account
|
|
272
|
-
* @param {string}
|
|
274
|
+
* @param {string} id
|
|
273
275
|
* @param {*} [axiosOptions] Override http request option.
|
|
274
276
|
* @throws {RequiredError}
|
|
275
277
|
*/
|
|
276
|
-
async removeAccount(id
|
|
278
|
+
async removeAccount(id: string, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
277
279
|
const localVarAxiosArgs = await localVarAxiosParamCreator.removeAccount(id, axiosOptions);
|
|
278
280
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
279
281
|
},
|
|
@@ -299,11 +301,11 @@ export const AccountsCCApiFactory = function (configuration?: Configuration, bas
|
|
|
299
301
|
/**
|
|
300
302
|
*
|
|
301
303
|
* @summary Remove Account
|
|
302
|
-
* @param {string}
|
|
304
|
+
* @param {string} id
|
|
303
305
|
* @param {*} [axiosOptions] Override http request option.
|
|
304
306
|
* @throws {RequiredError}
|
|
305
307
|
*/
|
|
306
|
-
removeAccount(id
|
|
308
|
+
removeAccount(id: string, axiosOptions?: any): AxiosPromise<void> {
|
|
307
309
|
return localVarFp.removeAccount(id, axiosOptions).then((request) => request(axios, basePath));
|
|
308
310
|
},
|
|
309
311
|
};
|
|
@@ -320,7 +322,7 @@ export interface AccountsCCApiRemoveAccountRequest {
|
|
|
320
322
|
* @type {string}
|
|
321
323
|
* @memberof AccountsCCApiRemoveAccount
|
|
322
324
|
*/
|
|
323
|
-
readonly id
|
|
325
|
+
readonly id: string
|
|
324
326
|
}
|
|
325
327
|
|
|
326
328
|
/**
|
|
@@ -349,7 +351,7 @@ export class AccountsCCApi extends BaseAPI {
|
|
|
349
351
|
* @throws {RequiredError}
|
|
350
352
|
* @memberof AccountsCCApi
|
|
351
353
|
*/
|
|
352
|
-
public removeAccount(requestParameters: AccountsCCApiRemoveAccountRequest
|
|
354
|
+
public removeAccount(requestParameters: AccountsCCApiRemoveAccountRequest, axiosOptions?: AxiosRequestConfig) {
|
|
353
355
|
return AccountsCCApiFp(this.configuration).removeAccount(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath));
|
|
354
356
|
}
|
|
355
357
|
}
|
|
@@ -406,12 +408,14 @@ export const ApplicationsCCApiAxiosParamCreator = function (configuration?: Conf
|
|
|
406
408
|
/**
|
|
407
409
|
*
|
|
408
410
|
* @summary Delete Application
|
|
409
|
-
* @param {string}
|
|
411
|
+
* @param {string} id
|
|
410
412
|
* @param {*} [axiosOptions] Override http request option.
|
|
411
413
|
* @throws {RequiredError}
|
|
412
414
|
*/
|
|
413
|
-
deleteApplication: async (id
|
|
414
|
-
|
|
415
|
+
deleteApplication: async (id: string, axiosOptions: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
416
|
+
// verify required parameter 'id' is not null or undefined
|
|
417
|
+
assertParamExists('deleteApplication', 'id', id)
|
|
418
|
+
const localVarPath = `/cc/api/app/delete/{id}`
|
|
415
419
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
416
420
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
417
421
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -446,12 +450,14 @@ export const ApplicationsCCApiAxiosParamCreator = function (configuration?: Conf
|
|
|
446
450
|
/**
|
|
447
451
|
*
|
|
448
452
|
* @summary Get Single Application
|
|
449
|
-
* @param {string}
|
|
453
|
+
* @param {string} id
|
|
450
454
|
* @param {*} [axiosOptions] Override http request option.
|
|
451
455
|
* @throws {RequiredError}
|
|
452
456
|
*/
|
|
453
|
-
getApplication: async (id
|
|
454
|
-
|
|
457
|
+
getApplication: async (id: string, axiosOptions: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
458
|
+
// verify required parameter 'id' is not null or undefined
|
|
459
|
+
assertParamExists('getApplication', 'id', id)
|
|
460
|
+
const localVarPath = `/cc/api/app/get/{id}`
|
|
455
461
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
456
462
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
457
463
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -486,12 +492,14 @@ export const ApplicationsCCApiAxiosParamCreator = function (configuration?: Conf
|
|
|
486
492
|
/**
|
|
487
493
|
*
|
|
488
494
|
* @summary Get Access Profiles for Application
|
|
489
|
-
* @param {string}
|
|
495
|
+
* @param {string} id
|
|
490
496
|
* @param {*} [axiosOptions] Override http request option.
|
|
491
497
|
* @throws {RequiredError}
|
|
492
498
|
*/
|
|
493
|
-
getApplicationAccessProfiles: async (id
|
|
494
|
-
|
|
499
|
+
getApplicationAccessProfiles: async (id: string, axiosOptions: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
500
|
+
// verify required parameter 'id' is not null or undefined
|
|
501
|
+
assertParamExists('getApplicationAccessProfiles', 'id', id)
|
|
502
|
+
const localVarPath = `/cc/api/app/getAccessProfiles/{id}`
|
|
495
503
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
496
504
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
497
505
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -522,7 +530,7 @@ export const ApplicationsCCApiAxiosParamCreator = function (configuration?: Conf
|
|
|
522
530
|
* @throws {RequiredError}
|
|
523
531
|
*/
|
|
524
532
|
listApplications: async (axiosOptions: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
525
|
-
const localVarPath = `/cc/api/app`;
|
|
533
|
+
const localVarPath = `/cc/api/app/list`;
|
|
526
534
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
527
535
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
528
536
|
let baseOptions;
|
|
@@ -556,13 +564,15 @@ export const ApplicationsCCApiAxiosParamCreator = function (configuration?: Conf
|
|
|
556
564
|
/**
|
|
557
565
|
*
|
|
558
566
|
* @summary Update Application
|
|
559
|
-
* @param {string}
|
|
567
|
+
* @param {string} id
|
|
560
568
|
* @param {UpdateApplicationRequestCC} [updateApplicationRequestCC]
|
|
561
569
|
* @param {*} [axiosOptions] Override http request option.
|
|
562
570
|
* @throws {RequiredError}
|
|
563
571
|
*/
|
|
564
|
-
updateApplication: async (id
|
|
565
|
-
|
|
572
|
+
updateApplication: async (id: string, updateApplicationRequestCC?: UpdateApplicationRequestCC, axiosOptions: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
573
|
+
// verify required parameter 'id' is not null or undefined
|
|
574
|
+
assertParamExists('updateApplication', 'id', id)
|
|
575
|
+
const localVarPath = `/cc/api/app/update/{id}`
|
|
566
576
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
567
577
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
568
578
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -621,33 +631,33 @@ export const ApplicationsCCApiFp = function(configuration?: Configuration) {
|
|
|
621
631
|
/**
|
|
622
632
|
*
|
|
623
633
|
* @summary Delete Application
|
|
624
|
-
* @param {string}
|
|
634
|
+
* @param {string} id
|
|
625
635
|
* @param {*} [axiosOptions] Override http request option.
|
|
626
636
|
* @throws {RequiredError}
|
|
627
637
|
*/
|
|
628
|
-
async deleteApplication(id
|
|
638
|
+
async deleteApplication(id: string, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
629
639
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApplication(id, axiosOptions);
|
|
630
640
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
631
641
|
},
|
|
632
642
|
/**
|
|
633
643
|
*
|
|
634
644
|
* @summary Get Single Application
|
|
635
|
-
* @param {string}
|
|
645
|
+
* @param {string} id
|
|
636
646
|
* @param {*} [axiosOptions] Override http request option.
|
|
637
647
|
* @throws {RequiredError}
|
|
638
648
|
*/
|
|
639
|
-
async getApplication(id
|
|
649
|
+
async getApplication(id: string, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
640
650
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getApplication(id, axiosOptions);
|
|
641
651
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
642
652
|
},
|
|
643
653
|
/**
|
|
644
654
|
*
|
|
645
655
|
* @summary Get Access Profiles for Application
|
|
646
|
-
* @param {string}
|
|
656
|
+
* @param {string} id
|
|
647
657
|
* @param {*} [axiosOptions] Override http request option.
|
|
648
658
|
* @throws {RequiredError}
|
|
649
659
|
*/
|
|
650
|
-
async getApplicationAccessProfiles(id
|
|
660
|
+
async getApplicationAccessProfiles(id: string, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
651
661
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getApplicationAccessProfiles(id, axiosOptions);
|
|
652
662
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
653
663
|
},
|
|
@@ -664,12 +674,12 @@ export const ApplicationsCCApiFp = function(configuration?: Configuration) {
|
|
|
664
674
|
/**
|
|
665
675
|
*
|
|
666
676
|
* @summary Update Application
|
|
667
|
-
* @param {string}
|
|
677
|
+
* @param {string} id
|
|
668
678
|
* @param {UpdateApplicationRequestCC} [updateApplicationRequestCC]
|
|
669
679
|
* @param {*} [axiosOptions] Override http request option.
|
|
670
680
|
* @throws {RequiredError}
|
|
671
681
|
*/
|
|
672
|
-
async updateApplication(id
|
|
682
|
+
async updateApplication(id: string, updateApplicationRequestCC?: UpdateApplicationRequestCC, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
673
683
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateApplication(id, updateApplicationRequestCC, axiosOptions);
|
|
674
684
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
675
685
|
},
|
|
@@ -696,31 +706,31 @@ export const ApplicationsCCApiFactory = function (configuration?: Configuration,
|
|
|
696
706
|
/**
|
|
697
707
|
*
|
|
698
708
|
* @summary Delete Application
|
|
699
|
-
* @param {string}
|
|
709
|
+
* @param {string} id
|
|
700
710
|
* @param {*} [axiosOptions] Override http request option.
|
|
701
711
|
* @throws {RequiredError}
|
|
702
712
|
*/
|
|
703
|
-
deleteApplication(id
|
|
713
|
+
deleteApplication(id: string, axiosOptions?: any): AxiosPromise<void> {
|
|
704
714
|
return localVarFp.deleteApplication(id, axiosOptions).then((request) => request(axios, basePath));
|
|
705
715
|
},
|
|
706
716
|
/**
|
|
707
717
|
*
|
|
708
718
|
* @summary Get Single Application
|
|
709
|
-
* @param {string}
|
|
719
|
+
* @param {string} id
|
|
710
720
|
* @param {*} [axiosOptions] Override http request option.
|
|
711
721
|
* @throws {RequiredError}
|
|
712
722
|
*/
|
|
713
|
-
getApplication(id
|
|
723
|
+
getApplication(id: string, axiosOptions?: any): AxiosPromise<void> {
|
|
714
724
|
return localVarFp.getApplication(id, axiosOptions).then((request) => request(axios, basePath));
|
|
715
725
|
},
|
|
716
726
|
/**
|
|
717
727
|
*
|
|
718
728
|
* @summary Get Access Profiles for Application
|
|
719
|
-
* @param {string}
|
|
729
|
+
* @param {string} id
|
|
720
730
|
* @param {*} [axiosOptions] Override http request option.
|
|
721
731
|
* @throws {RequiredError}
|
|
722
732
|
*/
|
|
723
|
-
getApplicationAccessProfiles(id
|
|
733
|
+
getApplicationAccessProfiles(id: string, axiosOptions?: any): AxiosPromise<void> {
|
|
724
734
|
return localVarFp.getApplicationAccessProfiles(id, axiosOptions).then((request) => request(axios, basePath));
|
|
725
735
|
},
|
|
726
736
|
/**
|
|
@@ -735,12 +745,12 @@ export const ApplicationsCCApiFactory = function (configuration?: Configuration,
|
|
|
735
745
|
/**
|
|
736
746
|
*
|
|
737
747
|
* @summary Update Application
|
|
738
|
-
* @param {string}
|
|
748
|
+
* @param {string} id
|
|
739
749
|
* @param {UpdateApplicationRequestCC} [updateApplicationRequestCC]
|
|
740
750
|
* @param {*} [axiosOptions] Override http request option.
|
|
741
751
|
* @throws {RequiredError}
|
|
742
752
|
*/
|
|
743
|
-
updateApplication(id
|
|
753
|
+
updateApplication(id: string, updateApplicationRequestCC?: UpdateApplicationRequestCC, axiosOptions?: any): AxiosPromise<void> {
|
|
744
754
|
return localVarFp.updateApplication(id, updateApplicationRequestCC, axiosOptions).then((request) => request(axios, basePath));
|
|
745
755
|
},
|
|
746
756
|
};
|
|
@@ -771,7 +781,7 @@ export interface ApplicationsCCApiDeleteApplicationRequest {
|
|
|
771
781
|
* @type {string}
|
|
772
782
|
* @memberof ApplicationsCCApiDeleteApplication
|
|
773
783
|
*/
|
|
774
|
-
readonly id
|
|
784
|
+
readonly id: string
|
|
775
785
|
}
|
|
776
786
|
|
|
777
787
|
/**
|
|
@@ -785,7 +795,7 @@ export interface ApplicationsCCApiGetApplicationRequest {
|
|
|
785
795
|
* @type {string}
|
|
786
796
|
* @memberof ApplicationsCCApiGetApplication
|
|
787
797
|
*/
|
|
788
|
-
readonly id
|
|
798
|
+
readonly id: string
|
|
789
799
|
}
|
|
790
800
|
|
|
791
801
|
/**
|
|
@@ -799,7 +809,7 @@ export interface ApplicationsCCApiGetApplicationAccessProfilesRequest {
|
|
|
799
809
|
* @type {string}
|
|
800
810
|
* @memberof ApplicationsCCApiGetApplicationAccessProfiles
|
|
801
811
|
*/
|
|
802
|
-
readonly id
|
|
812
|
+
readonly id: string
|
|
803
813
|
}
|
|
804
814
|
|
|
805
815
|
/**
|
|
@@ -813,7 +823,7 @@ export interface ApplicationsCCApiUpdateApplicationRequest {
|
|
|
813
823
|
* @type {string}
|
|
814
824
|
* @memberof ApplicationsCCApiUpdateApplication
|
|
815
825
|
*/
|
|
816
|
-
readonly id
|
|
826
|
+
readonly id: string
|
|
817
827
|
|
|
818
828
|
/**
|
|
819
829
|
*
|
|
@@ -850,7 +860,7 @@ export class ApplicationsCCApi extends BaseAPI {
|
|
|
850
860
|
* @throws {RequiredError}
|
|
851
861
|
* @memberof ApplicationsCCApi
|
|
852
862
|
*/
|
|
853
|
-
public deleteApplication(requestParameters: ApplicationsCCApiDeleteApplicationRequest
|
|
863
|
+
public deleteApplication(requestParameters: ApplicationsCCApiDeleteApplicationRequest, axiosOptions?: AxiosRequestConfig) {
|
|
854
864
|
return ApplicationsCCApiFp(this.configuration).deleteApplication(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath));
|
|
855
865
|
}
|
|
856
866
|
|
|
@@ -862,7 +872,7 @@ export class ApplicationsCCApi extends BaseAPI {
|
|
|
862
872
|
* @throws {RequiredError}
|
|
863
873
|
* @memberof ApplicationsCCApi
|
|
864
874
|
*/
|
|
865
|
-
public getApplication(requestParameters: ApplicationsCCApiGetApplicationRequest
|
|
875
|
+
public getApplication(requestParameters: ApplicationsCCApiGetApplicationRequest, axiosOptions?: AxiosRequestConfig) {
|
|
866
876
|
return ApplicationsCCApiFp(this.configuration).getApplication(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath));
|
|
867
877
|
}
|
|
868
878
|
|
|
@@ -874,7 +884,7 @@ export class ApplicationsCCApi extends BaseAPI {
|
|
|
874
884
|
* @throws {RequiredError}
|
|
875
885
|
* @memberof ApplicationsCCApi
|
|
876
886
|
*/
|
|
877
|
-
public getApplicationAccessProfiles(requestParameters: ApplicationsCCApiGetApplicationAccessProfilesRequest
|
|
887
|
+
public getApplicationAccessProfiles(requestParameters: ApplicationsCCApiGetApplicationAccessProfilesRequest, axiosOptions?: AxiosRequestConfig) {
|
|
878
888
|
return ApplicationsCCApiFp(this.configuration).getApplicationAccessProfiles(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath));
|
|
879
889
|
}
|
|
880
890
|
|
|
@@ -897,7 +907,7 @@ export class ApplicationsCCApi extends BaseAPI {
|
|
|
897
907
|
* @throws {RequiredError}
|
|
898
908
|
* @memberof ApplicationsCCApi
|
|
899
909
|
*/
|
|
900
|
-
public updateApplication(requestParameters: ApplicationsCCApiUpdateApplicationRequest
|
|
910
|
+
public updateApplication(requestParameters: ApplicationsCCApiUpdateApplicationRequest, axiosOptions?: AxiosRequestConfig) {
|
|
901
911
|
return ApplicationsCCApiFp(this.configuration).updateApplication(requestParameters.id, requestParameters.updateApplicationRequestCC, axiosOptions).then((request) => request(this.axios, this.basePath));
|
|
902
912
|
}
|
|
903
913
|
}
|
package/cc/common.ts
CHANGED
|
@@ -134,7 +134,8 @@ export const toPathString = function (url: URL) {
|
|
|
134
134
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
135
135
|
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
136
136
|
axiosRetry(globalAxios, configuration.retriesConfig)
|
|
137
|
-
axiosArgs.axiosOptions.headers['X-SailPoint-SDK'] = 'typescript-1.0.
|
|
137
|
+
axiosArgs.axiosOptions.headers['X-SailPoint-SDK'] = 'typescript-1.0.3'
|
|
138
|
+
axiosArgs.axiosOptions.headers['User-Agent'] = 'OpenAPI-Generator/1.0.3/ts'
|
|
138
139
|
const axiosRequestArgs = {...axiosArgs.axiosOptions, url: (configuration?.basePathCC || basePath) + axiosArgs.url};
|
|
139
140
|
return axios.request<T, R>(axiosRequestArgs);
|
|
140
141
|
};
|
package/cc/package.json
CHANGED
package/configuration.ts
CHANGED
|
@@ -176,9 +176,9 @@ export class Configuration {
|
|
|
176
176
|
} catch (error) {
|
|
177
177
|
console.log('unable to find config file')
|
|
178
178
|
}
|
|
179
|
-
config.baseurl = process.env["SAIL_BASE_URL"] ? process.env["
|
|
180
|
-
config.clientId = process.env["SAIL_CLIENT_ID"] ? process.env["
|
|
181
|
-
config.clientSecret = process.env["SAIL_CLIENT_SECRET"] ? process.env["
|
|
179
|
+
config.baseurl = process.env["SAIL_BASE_URL"] ? process.env["SAIL_BASE_URL"] : config.baseurl
|
|
180
|
+
config.clientId = process.env["SAIL_CLIENT_ID"] ? process.env["SAIL_CLIENT_ID"] : config.clientId
|
|
181
|
+
config.clientSecret = process.env["SAIL_CLIENT_SECRET"] ? process.env["SAIL_CLIENT_SECRET"] : config.clientSecret
|
|
182
182
|
|
|
183
183
|
config.tokenUrl = config.baseurl + '/oauth/token'
|
|
184
184
|
|