@stack-spot/portal-network 0.72.1-beta.0 → 0.72.1-beta.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.
- package/dist/api/account.d.ts +88 -4
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +45 -8
- package/dist/api/account.js.map +1 -1
- package/dist/client/account.d.ts +28 -0
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +37 -1
- package/dist/client/account.js.map +1 -1
- package/package.json +1 -1
- package/src/api/account.ts +176 -13
- package/src/client/account.ts +24 -1
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: "https://account-account-api.dev.stackspot.com",
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {
|
|
15
|
-
generatedServerUrl: "
|
|
15
|
+
generatedServerUrl: "https://account-account-api.dev.stackspot.com"
|
|
16
16
|
};
|
|
17
17
|
export type UserScmInfoResponse = {
|
|
18
18
|
/** Secrets name */
|
|
@@ -842,6 +842,53 @@ export type ExtensionVersionResumedReadResponse = {
|
|
|
842
842
|
/** The extension version date and time of creation */
|
|
843
843
|
createdAt: string;
|
|
844
844
|
};
|
|
845
|
+
export type ExtensionLinkReadResponse = {
|
|
846
|
+
/** Extension Link Id */
|
|
847
|
+
id: string;
|
|
848
|
+
/** Extension Slug related with the link */
|
|
849
|
+
extensionSlug: string;
|
|
850
|
+
/** The extension Link type */
|
|
851
|
+
"type": string;
|
|
852
|
+
/** The extension Link path */
|
|
853
|
+
path?: string;
|
|
854
|
+
/** The workspace id where the Extension should be displayed */
|
|
855
|
+
workspaceId?: string;
|
|
856
|
+
/** The menu height from Extension */
|
|
857
|
+
height?: number;
|
|
858
|
+
/** The menu weight from Extension */
|
|
859
|
+
weight?: number;
|
|
860
|
+
displayName?: ExtensionInfoByLanguageResponse;
|
|
861
|
+
};
|
|
862
|
+
export type ExtensionLinkCreateRequest = {
|
|
863
|
+
/** The slug from related Extension */
|
|
864
|
+
extensionSlug: string;
|
|
865
|
+
/** The type of the Extension Link */
|
|
866
|
+
"type": string;
|
|
867
|
+
/** The Workspace Id where the Extension should be displayed */
|
|
868
|
+
workspaceId?: string;
|
|
869
|
+
/** The Extension menu height */
|
|
870
|
+
height?: number;
|
|
871
|
+
/** The Extension menu weight */
|
|
872
|
+
weight?: number;
|
|
873
|
+
/** The Extension path */
|
|
874
|
+
path?: string;
|
|
875
|
+
};
|
|
876
|
+
export type ExtensionLinkCreateResponse = {
|
|
877
|
+
/** Extension Link Id */
|
|
878
|
+
id: string;
|
|
879
|
+
/** Extension Slug related with the Link */
|
|
880
|
+
extensionSlug: string;
|
|
881
|
+
/** The type of the Extension Link */
|
|
882
|
+
"type": string;
|
|
883
|
+
/** The Workspace Id where the Extension should be displayed */
|
|
884
|
+
workspaceId?: string;
|
|
885
|
+
/** The Extension menu height */
|
|
886
|
+
height?: number;
|
|
887
|
+
/** The Extension menu weight */
|
|
888
|
+
weight?: number;
|
|
889
|
+
/** The Extension path */
|
|
890
|
+
path?: string;
|
|
891
|
+
};
|
|
845
892
|
export type WelcomeEmailRequest = {
|
|
846
893
|
/** Firstname of the contact requester */
|
|
847
894
|
firstName: string;
|
|
@@ -1203,6 +1250,18 @@ export type ExtensionUpdateRequest = {
|
|
|
1203
1250
|
description?: ExtensionInfoByLanguageRequest;
|
|
1204
1251
|
displayName?: ExtensionInfoByLanguageRequest;
|
|
1205
1252
|
};
|
|
1253
|
+
export type ExtensionLinkUpdateRequest = {
|
|
1254
|
+
/** The type of the Extension Link */
|
|
1255
|
+
"type"?: string;
|
|
1256
|
+
/** The Workspace Id where the Extension should be displayed */
|
|
1257
|
+
workspaceId?: string;
|
|
1258
|
+
/** The Extension menu height */
|
|
1259
|
+
height?: number;
|
|
1260
|
+
/** The Extension menu weight */
|
|
1261
|
+
weight?: number;
|
|
1262
|
+
/** The Extension path */
|
|
1263
|
+
path?: string;
|
|
1264
|
+
};
|
|
1206
1265
|
export type AddNewEmailDomainRequest = {
|
|
1207
1266
|
/** Email domains list that account users will use to login into StackSpot. Example: zup.com.br */
|
|
1208
1267
|
domains: string[];
|
|
@@ -3391,7 +3450,7 @@ export function listExtensions(opts?: Oazapfts.RequestOpts) {
|
|
|
3391
3450
|
}));
|
|
3392
3451
|
}
|
|
3393
3452
|
/**
|
|
3394
|
-
*
|
|
3453
|
+
* Create Account Extension
|
|
3395
3454
|
*/
|
|
3396
3455
|
export function createExtension({ extensionCreateRequest }: {
|
|
3397
3456
|
extensionCreateRequest: ExtensionCreateRequest;
|
|
@@ -3473,6 +3532,66 @@ export function createExtensionVersion({ slug, name, body }: {
|
|
|
3473
3532
|
body
|
|
3474
3533
|
})));
|
|
3475
3534
|
}
|
|
3535
|
+
/**
|
|
3536
|
+
* List all Account Extension Links
|
|
3537
|
+
*/
|
|
3538
|
+
export function listExtensionLinks({ workspaceId, $type, extensionSlug, showOnlyActive }: {
|
|
3539
|
+
workspaceId?: string;
|
|
3540
|
+
$type?: string;
|
|
3541
|
+
extensionSlug?: any;
|
|
3542
|
+
showOnlyActive?: any;
|
|
3543
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3544
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3545
|
+
status: 200;
|
|
3546
|
+
data: ExtensionLinkReadResponse[];
|
|
3547
|
+
} | {
|
|
3548
|
+
status: 400;
|
|
3549
|
+
data: ErrorResponse;
|
|
3550
|
+
} | {
|
|
3551
|
+
status: 403;
|
|
3552
|
+
data: ErrorResponse;
|
|
3553
|
+
} | {
|
|
3554
|
+
status: 422;
|
|
3555
|
+
data: ErrorResponse;
|
|
3556
|
+
} | {
|
|
3557
|
+
status: 500;
|
|
3558
|
+
data: ErrorResponse;
|
|
3559
|
+
}>(`/v1/extension-links${QS.query(QS.explode({
|
|
3560
|
+
workspaceId,
|
|
3561
|
+
"type": $type,
|
|
3562
|
+
extensionSlug,
|
|
3563
|
+
showOnlyActive
|
|
3564
|
+
}))}`, {
|
|
3565
|
+
...opts
|
|
3566
|
+
}));
|
|
3567
|
+
}
|
|
3568
|
+
/**
|
|
3569
|
+
* Create Account Extension Link
|
|
3570
|
+
*/
|
|
3571
|
+
export function createExtensionLink({ extensionLinkCreateRequest }: {
|
|
3572
|
+
extensionLinkCreateRequest: ExtensionLinkCreateRequest;
|
|
3573
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3574
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3575
|
+
status: 201;
|
|
3576
|
+
data: ExtensionLinkCreateResponse;
|
|
3577
|
+
} | {
|
|
3578
|
+
status: 400;
|
|
3579
|
+
data: ErrorResponse;
|
|
3580
|
+
} | {
|
|
3581
|
+
status: 403;
|
|
3582
|
+
data: ErrorResponse;
|
|
3583
|
+
} | {
|
|
3584
|
+
status: 422;
|
|
3585
|
+
data: ErrorResponse;
|
|
3586
|
+
} | {
|
|
3587
|
+
status: 500;
|
|
3588
|
+
data: ErrorResponse;
|
|
3589
|
+
}>("/v1/extension-links", oazapfts.json({
|
|
3590
|
+
...opts,
|
|
3591
|
+
method: "POST",
|
|
3592
|
+
body: extensionLinkCreateRequest
|
|
3593
|
+
})));
|
|
3594
|
+
}
|
|
3476
3595
|
/**
|
|
3477
3596
|
* Send Welcome Email
|
|
3478
3597
|
*/
|
|
@@ -4525,6 +4644,60 @@ export function updateExtension({ slug, extensionUpdateRequest }: {
|
|
|
4525
4644
|
body: extensionUpdateRequest
|
|
4526
4645
|
})));
|
|
4527
4646
|
}
|
|
4647
|
+
/**
|
|
4648
|
+
* Delete Account Extension Link
|
|
4649
|
+
*/
|
|
4650
|
+
export function deleteExtensionLink({ id }: {
|
|
4651
|
+
id: string;
|
|
4652
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4653
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4654
|
+
status: 204;
|
|
4655
|
+
} | {
|
|
4656
|
+
status: 400;
|
|
4657
|
+
data: ErrorResponse;
|
|
4658
|
+
} | {
|
|
4659
|
+
status: 403;
|
|
4660
|
+
data: ErrorResponse;
|
|
4661
|
+
} | {
|
|
4662
|
+
status: 422;
|
|
4663
|
+
data: ErrorResponse;
|
|
4664
|
+
} | {
|
|
4665
|
+
status: 500;
|
|
4666
|
+
data: ErrorResponse;
|
|
4667
|
+
}>(`/v1/extension-links/${encodeURIComponent(id)}`, {
|
|
4668
|
+
...opts,
|
|
4669
|
+
method: "DELETE"
|
|
4670
|
+
}));
|
|
4671
|
+
}
|
|
4672
|
+
/**
|
|
4673
|
+
* Update Account Extension Link
|
|
4674
|
+
*/
|
|
4675
|
+
export function updateExtensionLink({ id, extensionLinkUpdateRequest }: {
|
|
4676
|
+
id: string;
|
|
4677
|
+
extensionLinkUpdateRequest?: ExtensionLinkUpdateRequest;
|
|
4678
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4679
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4680
|
+
status: 200;
|
|
4681
|
+
} | {
|
|
4682
|
+
status: 204;
|
|
4683
|
+
} | {
|
|
4684
|
+
status: 400;
|
|
4685
|
+
data: ErrorResponse;
|
|
4686
|
+
} | {
|
|
4687
|
+
status: 403;
|
|
4688
|
+
data: ErrorResponse;
|
|
4689
|
+
} | {
|
|
4690
|
+
status: 422;
|
|
4691
|
+
data: ErrorResponse;
|
|
4692
|
+
} | {
|
|
4693
|
+
status: 500;
|
|
4694
|
+
data: ErrorResponse;
|
|
4695
|
+
}>(`/v1/extension-links/${encodeURIComponent(id)}`, oazapfts.json({
|
|
4696
|
+
...opts,
|
|
4697
|
+
method: "PATCH",
|
|
4698
|
+
body: extensionLinkUpdateRequest
|
|
4699
|
+
})));
|
|
4700
|
+
}
|
|
4528
4701
|
/**
|
|
4529
4702
|
* Adds a new email domain to an existing account
|
|
4530
4703
|
*/
|
|
@@ -4689,16 +4862,6 @@ export function getServiceCredentialGroups({ id }: {
|
|
|
4689
4862
|
...opts
|
|
4690
4863
|
}));
|
|
4691
4864
|
}
|
|
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
|
-
}
|
|
4702
4865
|
/**
|
|
4703
4866
|
* Get Roles
|
|
4704
4867
|
*/
|
package/src/client/account.ts
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
bindGroupMembers,
|
|
9
9
|
bindRoleGroups,
|
|
10
10
|
bindRoles,
|
|
11
|
-
bindToGroups, bindToRoles, create, createAccountRole, createExtension, createExtensionVersion, createGroupMapping, createPartner,
|
|
11
|
+
bindToGroups, bindToRoles, create, createAccountRole, createExtension, createExtensionLink, createExtensionVersion, createGroupMapping, createPartner,
|
|
12
12
|
createPersonalAccessToken,
|
|
13
13
|
createServiceCredential1,
|
|
14
14
|
createUser,
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
defaults,
|
|
17
17
|
deleteAccountRole,
|
|
18
18
|
deleteExtension,
|
|
19
|
+
deleteExtensionLink,
|
|
19
20
|
deleteExtensionVersion,
|
|
20
21
|
deleteGroupMapping,
|
|
21
22
|
deleteMember,
|
|
@@ -65,6 +66,7 @@ import {
|
|
|
65
66
|
isCreatedScmCredentials,
|
|
66
67
|
isCreatedScmCredentials1,
|
|
67
68
|
listAccountMemberFavorites,
|
|
69
|
+
listExtensionLinks,
|
|
68
70
|
listExtensions,
|
|
69
71
|
listExtensionVersions,
|
|
70
72
|
listMemberFavoritesByResource,
|
|
@@ -77,6 +79,7 @@ import {
|
|
|
77
79
|
ssoConfigure, ssoGetAttributesConfig, ssoParseConfigurationFile, update1,
|
|
78
80
|
updateAccountRole,
|
|
79
81
|
updateExtension,
|
|
82
|
+
updateExtensionLink,
|
|
80
83
|
updateGroupMapping,
|
|
81
84
|
updateMemberPreferences,
|
|
82
85
|
updatePartnerAccountAdminData,
|
|
@@ -662,6 +665,26 @@ class AccountClient extends ReactQueryNetworkClient {
|
|
|
662
665
|
*/
|
|
663
666
|
deleteExtensionVersion = this.mutation(deleteExtensionVersion)
|
|
664
667
|
|
|
668
|
+
/**
|
|
669
|
+
* Lists all extension links.
|
|
670
|
+
*/
|
|
671
|
+
extensionLinks = this.query(listExtensionLinks)
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* Updates an extension link with a patch operation.
|
|
675
|
+
*/
|
|
676
|
+
patchExtensionLink = this.query(updateExtensionLink)
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Creates a new extension link.
|
|
680
|
+
*/
|
|
681
|
+
createExtensionLink = this.mutation(createExtensionLink)
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* Deletes an extension link.
|
|
685
|
+
*/
|
|
686
|
+
deleteExtensionLink = this.mutation(deleteExtensionLink)
|
|
687
|
+
|
|
665
688
|
}
|
|
666
689
|
|
|
667
690
|
export const accountClient = new AccountClient()
|