@stack-spot/portal-network 0.72.0 → 0.72.1-beta.0
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/CHANGELOG.md +7 -0
- package/dist/api/account.d.ts +133 -1
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +98 -2
- package/dist/api/account.js.map +1 -1
- package/dist/client/account.d.ts +59 -1
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +83 -2
- package/dist/client/account.js.map +1 -1
- package/package.json +1 -1
- package/src/api/account.ts +336 -3
- package/src/client/account.ts +56 -4
package/package.json
CHANGED
package/src/api/account.ts
CHANGED
|
@@ -8,11 +8,11 @@ import * as Oazapfts from "@oazapfts/runtime";
|
|
|
8
8
|
import * as QS from "@oazapfts/runtime/query";
|
|
9
9
|
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
10
|
headers: {},
|
|
11
|
-
baseUrl: "
|
|
11
|
+
baseUrl: "http://account-account-api.dev.stackspot.com",
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {
|
|
15
|
-
generatedServerUrl: "
|
|
15
|
+
generatedServerUrl: "http://account-account-api.dev.stackspot.com"
|
|
16
16
|
};
|
|
17
17
|
export type UserScmInfoResponse = {
|
|
18
18
|
/** Secrets name */
|
|
@@ -163,6 +163,7 @@ export type AccountMemberStackspotIamDto = {
|
|
|
163
163
|
properties?: {
|
|
164
164
|
[key: string]: object;
|
|
165
165
|
};
|
|
166
|
+
avatarImage?: string;
|
|
166
167
|
};
|
|
167
168
|
export type UpdateUserRequest = {
|
|
168
169
|
/** User username */
|
|
@@ -185,6 +186,8 @@ export type UpdateUserRequest = {
|
|
|
185
186
|
company?: string;
|
|
186
187
|
/** User new password */
|
|
187
188
|
password?: string;
|
|
189
|
+
/** Image profile */
|
|
190
|
+
avatarImageBase64?: string;
|
|
188
191
|
};
|
|
189
192
|
export type UpdateUserResponse = {
|
|
190
193
|
username?: string;
|
|
@@ -634,7 +637,7 @@ export type AccountMemberResponse = {
|
|
|
634
637
|
/** Account member status */
|
|
635
638
|
isActive: boolean;
|
|
636
639
|
/** Account member avatar URL */
|
|
637
|
-
|
|
640
|
+
avatarImage?: string;
|
|
638
641
|
/** Account member full name */
|
|
639
642
|
name: string;
|
|
640
643
|
};
|
|
@@ -659,6 +662,8 @@ export type CreateUserRequest = {
|
|
|
659
662
|
password?: string;
|
|
660
663
|
/** User Company */
|
|
661
664
|
company?: string;
|
|
665
|
+
/** Image profile */
|
|
666
|
+
avatarImageBase64?: string;
|
|
662
667
|
};
|
|
663
668
|
export type CreateUserResponse = {
|
|
664
669
|
username: string;
|
|
@@ -801,6 +806,42 @@ export type CreateFeatureFlagRequest = {
|
|
|
801
806
|
/** The feature flag description */
|
|
802
807
|
description: string;
|
|
803
808
|
};
|
|
809
|
+
export type ExtensionInfoByLanguageResponse = {
|
|
810
|
+
pt?: string;
|
|
811
|
+
en?: string;
|
|
812
|
+
};
|
|
813
|
+
export type ExtensionReadResponse = {
|
|
814
|
+
/** Extension Id */
|
|
815
|
+
id: string;
|
|
816
|
+
/** Extension Slug */
|
|
817
|
+
slug: string;
|
|
818
|
+
description?: ExtensionInfoByLanguageResponse;
|
|
819
|
+
displayName?: ExtensionInfoByLanguageResponse;
|
|
820
|
+
/** The Id from active extension version */
|
|
821
|
+
activeVersionId?: string;
|
|
822
|
+
};
|
|
823
|
+
export type ExtensionInfoByLanguageRequest = {
|
|
824
|
+
pt?: string;
|
|
825
|
+
en?: string;
|
|
826
|
+
};
|
|
827
|
+
export type ExtensionCreateRequest = {
|
|
828
|
+
/** The slug to use in URL as unique identifying part representing the extension */
|
|
829
|
+
slug: string;
|
|
830
|
+
description?: ExtensionInfoByLanguageRequest;
|
|
831
|
+
displayName?: ExtensionInfoByLanguageRequest;
|
|
832
|
+
};
|
|
833
|
+
export type ExtensionVersionResumedReadResponse = {
|
|
834
|
+
/** Extension Version Id */
|
|
835
|
+
id: string;
|
|
836
|
+
/** Extension Slug */
|
|
837
|
+
extensionSlug: string;
|
|
838
|
+
/** The extension version name */
|
|
839
|
+
name: string;
|
|
840
|
+
/** The extension version content url */
|
|
841
|
+
dataUrl: string;
|
|
842
|
+
/** The extension version date and time of creation */
|
|
843
|
+
createdAt: string;
|
|
844
|
+
};
|
|
804
845
|
export type WelcomeEmailRequest = {
|
|
805
846
|
/** Firstname of the contact requester */
|
|
806
847
|
firstName: string;
|
|
@@ -1156,6 +1197,12 @@ export type UpdateGroupPermissionsRequest = {
|
|
|
1156
1197
|
/** Slug from resource */
|
|
1157
1198
|
resourceSlug: string;
|
|
1158
1199
|
};
|
|
1200
|
+
export type ExtensionUpdateRequest = {
|
|
1201
|
+
/** The Id from active extension version */
|
|
1202
|
+
activeVersionId?: string;
|
|
1203
|
+
description?: ExtensionInfoByLanguageRequest;
|
|
1204
|
+
displayName?: ExtensionInfoByLanguageRequest;
|
|
1205
|
+
};
|
|
1159
1206
|
export type AddNewEmailDomainRequest = {
|
|
1160
1207
|
/** Email domains list that account users will use to login into StackSpot. Example: zup.com.br */
|
|
1161
1208
|
domains: string[];
|
|
@@ -1474,6 +1521,23 @@ export type ResourceDto = {
|
|
|
1474
1521
|
description?: string;
|
|
1475
1522
|
"type"?: ResourceTypeDto;
|
|
1476
1523
|
};
|
|
1524
|
+
export type ExtensionVersionInfoByLanguageResponse = {
|
|
1525
|
+
pt?: string;
|
|
1526
|
+
en?: string;
|
|
1527
|
+
};
|
|
1528
|
+
export type ExtensionVersionResponse = {
|
|
1529
|
+
/** Extension Version Id */
|
|
1530
|
+
id: string;
|
|
1531
|
+
/** Extension Slug */
|
|
1532
|
+
extensionSlug: string;
|
|
1533
|
+
/** The extension version name */
|
|
1534
|
+
name: string;
|
|
1535
|
+
/** The extension version content url */
|
|
1536
|
+
dataUrl: string;
|
|
1537
|
+
/** The extension version date and time of creation */
|
|
1538
|
+
createdAt: string;
|
|
1539
|
+
displayName?: ExtensionVersionInfoByLanguageResponse;
|
|
1540
|
+
};
|
|
1477
1541
|
export type AccountAuthenticationConfigResponse = {
|
|
1478
1542
|
/** OpenID Well Known url for current account */
|
|
1479
1543
|
openIdWellKnownUrl: string;
|
|
@@ -3303,6 +3367,112 @@ export function create({ createFeatureFlagRequest }: {
|
|
|
3303
3367
|
body: createFeatureFlagRequest
|
|
3304
3368
|
})));
|
|
3305
3369
|
}
|
|
3370
|
+
/**
|
|
3371
|
+
* List all Account Extensions
|
|
3372
|
+
*/
|
|
3373
|
+
export function listExtensions(opts?: Oazapfts.RequestOpts) {
|
|
3374
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3375
|
+
status: 200;
|
|
3376
|
+
data: ExtensionReadResponse[];
|
|
3377
|
+
} | {
|
|
3378
|
+
status: 400;
|
|
3379
|
+
data: ErrorResponse;
|
|
3380
|
+
} | {
|
|
3381
|
+
status: 403;
|
|
3382
|
+
data: ErrorResponse;
|
|
3383
|
+
} | {
|
|
3384
|
+
status: 422;
|
|
3385
|
+
data: ErrorResponse;
|
|
3386
|
+
} | {
|
|
3387
|
+
status: 500;
|
|
3388
|
+
data: ErrorResponse;
|
|
3389
|
+
}>("/v1/extensions", {
|
|
3390
|
+
...opts
|
|
3391
|
+
}));
|
|
3392
|
+
}
|
|
3393
|
+
/**
|
|
3394
|
+
* Update Account Extension
|
|
3395
|
+
*/
|
|
3396
|
+
export function createExtension({ extensionCreateRequest }: {
|
|
3397
|
+
extensionCreateRequest: ExtensionCreateRequest;
|
|
3398
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3399
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3400
|
+
status: 201;
|
|
3401
|
+
} | {
|
|
3402
|
+
status: 400;
|
|
3403
|
+
data: ErrorResponse;
|
|
3404
|
+
} | {
|
|
3405
|
+
status: 403;
|
|
3406
|
+
data: ErrorResponse;
|
|
3407
|
+
} | {
|
|
3408
|
+
status: 422;
|
|
3409
|
+
data: ErrorResponse;
|
|
3410
|
+
} | {
|
|
3411
|
+
status: 500;
|
|
3412
|
+
data: ErrorResponse;
|
|
3413
|
+
}>("/v1/extensions", oazapfts.json({
|
|
3414
|
+
...opts,
|
|
3415
|
+
method: "POST",
|
|
3416
|
+
body: extensionCreateRequest
|
|
3417
|
+
})));
|
|
3418
|
+
}
|
|
3419
|
+
/**
|
|
3420
|
+
* List all Account Extension Versions
|
|
3421
|
+
*/
|
|
3422
|
+
export function listExtensionVersions({ slug }: {
|
|
3423
|
+
slug: string;
|
|
3424
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3425
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3426
|
+
status: 200;
|
|
3427
|
+
data: ExtensionVersionResumedReadResponse[];
|
|
3428
|
+
} | {
|
|
3429
|
+
status: 400;
|
|
3430
|
+
data: ErrorResponse;
|
|
3431
|
+
} | {
|
|
3432
|
+
status: 403;
|
|
3433
|
+
data: ErrorResponse;
|
|
3434
|
+
} | {
|
|
3435
|
+
status: 422;
|
|
3436
|
+
data: ErrorResponse;
|
|
3437
|
+
} | {
|
|
3438
|
+
status: 500;
|
|
3439
|
+
data: ErrorResponse;
|
|
3440
|
+
}>(`/v1/extensions/${encodeURIComponent(slug)}/versions`, {
|
|
3441
|
+
...opts
|
|
3442
|
+
}));
|
|
3443
|
+
}
|
|
3444
|
+
/**
|
|
3445
|
+
* Create Account Extension Version
|
|
3446
|
+
*/
|
|
3447
|
+
export function createExtensionVersion({ slug, name, body }: {
|
|
3448
|
+
slug: string;
|
|
3449
|
+
name: string;
|
|
3450
|
+
body?: {
|
|
3451
|
+
file: Blob;
|
|
3452
|
+
};
|
|
3453
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3454
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3455
|
+
status: 201;
|
|
3456
|
+
} | {
|
|
3457
|
+
status: 400;
|
|
3458
|
+
data: ErrorResponse;
|
|
3459
|
+
} | {
|
|
3460
|
+
status: 403;
|
|
3461
|
+
data: ErrorResponse;
|
|
3462
|
+
} | {
|
|
3463
|
+
status: 422;
|
|
3464
|
+
data: ErrorResponse;
|
|
3465
|
+
} | {
|
|
3466
|
+
status: 500;
|
|
3467
|
+
data: ErrorResponse;
|
|
3468
|
+
}>(`/v1/extensions/${encodeURIComponent(slug)}/versions${QS.query(QS.explode({
|
|
3469
|
+
name
|
|
3470
|
+
}))}`, oazapfts.multipart({
|
|
3471
|
+
...opts,
|
|
3472
|
+
method: "POST",
|
|
3473
|
+
body
|
|
3474
|
+
})));
|
|
3475
|
+
}
|
|
3306
3476
|
/**
|
|
3307
3477
|
* Send Welcome Email
|
|
3308
3478
|
*/
|
|
@@ -4301,6 +4471,60 @@ export function disable({ id }: {
|
|
|
4301
4471
|
method: "PATCH"
|
|
4302
4472
|
}));
|
|
4303
4473
|
}
|
|
4474
|
+
/**
|
|
4475
|
+
* Delete Account Extension
|
|
4476
|
+
*/
|
|
4477
|
+
export function deleteExtension({ slug }: {
|
|
4478
|
+
slug: string;
|
|
4479
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4480
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4481
|
+
status: 204;
|
|
4482
|
+
} | {
|
|
4483
|
+
status: 400;
|
|
4484
|
+
data: ErrorResponse;
|
|
4485
|
+
} | {
|
|
4486
|
+
status: 403;
|
|
4487
|
+
data: ErrorResponse;
|
|
4488
|
+
} | {
|
|
4489
|
+
status: 422;
|
|
4490
|
+
data: ErrorResponse;
|
|
4491
|
+
} | {
|
|
4492
|
+
status: 500;
|
|
4493
|
+
data: ErrorResponse;
|
|
4494
|
+
}>(`/v1/extensions/${encodeURIComponent(slug)}`, {
|
|
4495
|
+
...opts,
|
|
4496
|
+
method: "DELETE"
|
|
4497
|
+
}));
|
|
4498
|
+
}
|
|
4499
|
+
/**
|
|
4500
|
+
* Update Account Extension
|
|
4501
|
+
*/
|
|
4502
|
+
export function updateExtension({ slug, extensionUpdateRequest }: {
|
|
4503
|
+
slug: string;
|
|
4504
|
+
extensionUpdateRequest: ExtensionUpdateRequest;
|
|
4505
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4506
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4507
|
+
status: 200;
|
|
4508
|
+
} | {
|
|
4509
|
+
status: 204;
|
|
4510
|
+
} | {
|
|
4511
|
+
status: 400;
|
|
4512
|
+
data: ErrorResponse;
|
|
4513
|
+
} | {
|
|
4514
|
+
status: 403;
|
|
4515
|
+
data: ErrorResponse;
|
|
4516
|
+
} | {
|
|
4517
|
+
status: 422;
|
|
4518
|
+
data: ErrorResponse;
|
|
4519
|
+
} | {
|
|
4520
|
+
status: 500;
|
|
4521
|
+
data: ErrorResponse;
|
|
4522
|
+
}>(`/v1/extensions/${encodeURIComponent(slug)}`, oazapfts.json({
|
|
4523
|
+
...opts,
|
|
4524
|
+
method: "PATCH",
|
|
4525
|
+
body: extensionUpdateRequest
|
|
4526
|
+
})));
|
|
4527
|
+
}
|
|
4304
4528
|
/**
|
|
4305
4529
|
* Adds a new email domain to an existing account
|
|
4306
4530
|
*/
|
|
@@ -4465,6 +4689,16 @@ export function getServiceCredentialGroups({ id }: {
|
|
|
4465
4689
|
...opts
|
|
4466
4690
|
}));
|
|
4467
4691
|
}
|
|
4692
|
+
export function getSecret({ id }: {
|
|
4693
|
+
id: string;
|
|
4694
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4695
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4696
|
+
status: 200;
|
|
4697
|
+
data: string;
|
|
4698
|
+
}>(`/v2/secrets/${encodeURIComponent(id)}`, {
|
|
4699
|
+
...opts
|
|
4700
|
+
}));
|
|
4701
|
+
}
|
|
4468
4702
|
/**
|
|
4469
4703
|
* Get Roles
|
|
4470
4704
|
*/
|
|
@@ -5552,6 +5786,83 @@ export function getAccountMembersToCollaborators({ size, page, sort, direction,
|
|
|
5552
5786
|
...opts
|
|
5553
5787
|
}));
|
|
5554
5788
|
}
|
|
5789
|
+
/**
|
|
5790
|
+
* Get a Account Extension Version
|
|
5791
|
+
*/
|
|
5792
|
+
export function getExtensionVersion({ slug, versionName }: {
|
|
5793
|
+
slug: string;
|
|
5794
|
+
versionName: string;
|
|
5795
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5796
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5797
|
+
status: 200;
|
|
5798
|
+
data: ExtensionVersionResponse;
|
|
5799
|
+
} | {
|
|
5800
|
+
status: 400;
|
|
5801
|
+
data: ErrorResponse;
|
|
5802
|
+
} | {
|
|
5803
|
+
status: 403;
|
|
5804
|
+
data: ErrorResponse;
|
|
5805
|
+
} | {
|
|
5806
|
+
status: 422;
|
|
5807
|
+
data: ErrorResponse;
|
|
5808
|
+
} | {
|
|
5809
|
+
status: 500;
|
|
5810
|
+
data: ErrorResponse;
|
|
5811
|
+
}>(`/v1/extensions/${encodeURIComponent(slug)}/versions/${encodeURIComponent(versionName)}`, {
|
|
5812
|
+
...opts
|
|
5813
|
+
}));
|
|
5814
|
+
}
|
|
5815
|
+
/**
|
|
5816
|
+
* Delete Account Extension Version
|
|
5817
|
+
*/
|
|
5818
|
+
export function deleteExtensionVersion({ slug, versionName }: {
|
|
5819
|
+
slug: string;
|
|
5820
|
+
versionName: string;
|
|
5821
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5822
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5823
|
+
status: 204;
|
|
5824
|
+
} | {
|
|
5825
|
+
status: 400;
|
|
5826
|
+
data: ErrorResponse;
|
|
5827
|
+
} | {
|
|
5828
|
+
status: 403;
|
|
5829
|
+
data: ErrorResponse;
|
|
5830
|
+
} | {
|
|
5831
|
+
status: 422;
|
|
5832
|
+
data: ErrorResponse;
|
|
5833
|
+
} | {
|
|
5834
|
+
status: 500;
|
|
5835
|
+
data: ErrorResponse;
|
|
5836
|
+
}>(`/v1/extensions/${encodeURIComponent(slug)}/versions/${encodeURIComponent(versionName)}`, {
|
|
5837
|
+
...opts,
|
|
5838
|
+
method: "DELETE"
|
|
5839
|
+
}));
|
|
5840
|
+
}
|
|
5841
|
+
/**
|
|
5842
|
+
* Get the active Extension Version
|
|
5843
|
+
*/
|
|
5844
|
+
export function getActiveExtensionVersion({ slug }: {
|
|
5845
|
+
slug: string;
|
|
5846
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5847
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5848
|
+
status: 200;
|
|
5849
|
+
data: ExtensionVersionResponse;
|
|
5850
|
+
} | {
|
|
5851
|
+
status: 400;
|
|
5852
|
+
data: ErrorResponse;
|
|
5853
|
+
} | {
|
|
5854
|
+
status: 403;
|
|
5855
|
+
data: ErrorResponse;
|
|
5856
|
+
} | {
|
|
5857
|
+
status: 422;
|
|
5858
|
+
data: ErrorResponse;
|
|
5859
|
+
} | {
|
|
5860
|
+
status: 500;
|
|
5861
|
+
data: ErrorResponse;
|
|
5862
|
+
}>(`/v1/extensions/${encodeURIComponent(slug)}/active`, {
|
|
5863
|
+
...opts
|
|
5864
|
+
}));
|
|
5865
|
+
}
|
|
5555
5866
|
/**
|
|
5556
5867
|
* Get Authentication Configuration for account
|
|
5557
5868
|
*/
|
|
@@ -5848,6 +6159,28 @@ export function deleteResource({ resourceId }: {
|
|
|
5848
6159
|
method: "DELETE"
|
|
5849
6160
|
}));
|
|
5850
6161
|
}
|
|
6162
|
+
/**
|
|
6163
|
+
* Removes member profile image
|
|
6164
|
+
*/
|
|
6165
|
+
export function deleteProfileImage({ memberId }: {
|
|
6166
|
+
memberId: string;
|
|
6167
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
6168
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
6169
|
+
status: 204;
|
|
6170
|
+
} | {
|
|
6171
|
+
status: 400;
|
|
6172
|
+
data: ErrorResponse;
|
|
6173
|
+
} | {
|
|
6174
|
+
status: 404;
|
|
6175
|
+
data: ErrorResponse;
|
|
6176
|
+
} | {
|
|
6177
|
+
status: 500;
|
|
6178
|
+
data: ErrorResponse;
|
|
6179
|
+
}>(`/v1/members/${encodeURIComponent(memberId)}/profile-image`, {
|
|
6180
|
+
...opts,
|
|
6181
|
+
method: "DELETE"
|
|
6182
|
+
}));
|
|
6183
|
+
}
|
|
5851
6184
|
/**
|
|
5852
6185
|
* Remove resource from member favorites
|
|
5853
6186
|
*/
|
package/src/client/account.ts
CHANGED
|
@@ -8,13 +8,15 @@ import {
|
|
|
8
8
|
bindGroupMembers,
|
|
9
9
|
bindRoleGroups,
|
|
10
10
|
bindRoles,
|
|
11
|
-
bindToGroups, bindToRoles, create, createAccountRole, createGroupMapping, createPartner,
|
|
11
|
+
bindToGroups, bindToRoles, create, createAccountRole, createExtension, createExtensionVersion, createGroupMapping, createPartner,
|
|
12
12
|
createPersonalAccessToken,
|
|
13
13
|
createServiceCredential1,
|
|
14
14
|
createUser,
|
|
15
15
|
deactivateFidoCredentials,
|
|
16
16
|
defaults,
|
|
17
17
|
deleteAccountRole,
|
|
18
|
+
deleteExtension,
|
|
19
|
+
deleteExtensionVersion,
|
|
18
20
|
deleteGroupMapping,
|
|
19
21
|
deleteMember,
|
|
20
22
|
deleteMemberFavorite,
|
|
@@ -22,11 +24,12 @@ import {
|
|
|
22
24
|
disassociateGroupToServiceCredential, enableFidoCredentials,
|
|
23
25
|
getAccess,
|
|
24
26
|
getAccountMembers,
|
|
25
|
-
|
|
27
|
+
getAccountMembers2,
|
|
26
28
|
getAccountSso,
|
|
29
|
+
getActiveExtensionVersion,
|
|
27
30
|
getAllAccountSso,
|
|
28
31
|
getAllGroupMapping,
|
|
29
|
-
getAllMemberFidoCredentials, getFeatures,
|
|
32
|
+
getAllMemberFidoCredentials, getExtensionVersion, getFeatures,
|
|
30
33
|
getGroupById,
|
|
31
34
|
getGroupResources,
|
|
32
35
|
getGroupResources1,
|
|
@@ -62,6 +65,8 @@ import {
|
|
|
62
65
|
isCreatedScmCredentials,
|
|
63
66
|
isCreatedScmCredentials1,
|
|
64
67
|
listAccountMemberFavorites,
|
|
68
|
+
listExtensions,
|
|
69
|
+
listExtensionVersions,
|
|
65
70
|
listMemberFavoritesByResource,
|
|
66
71
|
listScmCredentials,
|
|
67
72
|
listScmCredentials1, partialUpdateSso, personalAccessTokenAuthorization,
|
|
@@ -71,6 +76,7 @@ import {
|
|
|
71
76
|
scmCredentialSave, scmCredentialSave1, scmCredentialUpdate, scmCredentialUpdate1, scmDelete, sendDownloadEmail, ssoAddAttributes,
|
|
72
77
|
ssoConfigure, ssoGetAttributesConfig, ssoParseConfigurationFile, update1,
|
|
73
78
|
updateAccountRole,
|
|
79
|
+
updateExtension,
|
|
74
80
|
updateGroupMapping,
|
|
75
81
|
updateMemberPreferences,
|
|
76
82
|
updatePartnerAccountAdminData,
|
|
@@ -168,7 +174,7 @@ class AccountClient extends ReactQueryNetworkClient {
|
|
|
168
174
|
/**
|
|
169
175
|
* Gets all members (paginated).
|
|
170
176
|
*/
|
|
171
|
-
allMembers = this.infiniteQuery(
|
|
177
|
+
allMembers = this.infiniteQuery(getAccountMembers2)
|
|
172
178
|
/**
|
|
173
179
|
* Gets member Groups (paginated).
|
|
174
180
|
*/
|
|
@@ -610,6 +616,52 @@ class AccountClient extends ReactQueryNetworkClient {
|
|
|
610
616
|
* Get Service Credentials
|
|
611
617
|
*/
|
|
612
618
|
allServiceCredentialsWithPagination = this.query(getServiceCredentials)
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* Creates an extension.
|
|
622
|
+
*/
|
|
623
|
+
createExtension = this.mutation(createExtension)
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* Deletes an extension.
|
|
627
|
+
*/
|
|
628
|
+
deleteExtension = this.mutation(deleteExtension)
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Updates an extension with a patch operation.
|
|
632
|
+
*/
|
|
633
|
+
patchExtension = this.mutation(updateExtension)
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Lists all extensions.
|
|
637
|
+
*/
|
|
638
|
+
extensions = this.query(listExtensions)
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Lists all versions of an extension.
|
|
642
|
+
*/
|
|
643
|
+
extensionVersions = this.query(listExtensionVersions)
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* Gets a specific version of an extension.
|
|
647
|
+
*/
|
|
648
|
+
getExtensionVersion = this.query(getExtensionVersion)
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* Gets the active version of an extension.
|
|
652
|
+
*/
|
|
653
|
+
getActiveExtensionVersion = this.query(getActiveExtensionVersion)
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* Creates a new version of an extension.
|
|
657
|
+
*/
|
|
658
|
+
createExtensionVersion = this.mutation(createExtensionVersion)
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Deletes a specific version of an extension.
|
|
662
|
+
*/
|
|
663
|
+
deleteExtensionVersion = this.mutation(deleteExtensionVersion)
|
|
664
|
+
|
|
613
665
|
}
|
|
614
666
|
|
|
615
667
|
export const accountClient = new AccountClient()
|