@stack-spot/portal-network 0.74.0 → 0.75.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.75.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.74.0...portal-network@v0.75.0) (2025-01-28)
4
+
5
+
6
+ ### Features
7
+
8
+ * 1222 account extensions ([#667](https://github.com/stack-spot/portal-commons/issues/667)) ([18d1e45](https://github.com/stack-spot/portal-commons/commit/18d1e45f129dbf001aa6e3e8fdaca597c6aabe2b))
9
+
3
10
  ## [0.74.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.73.0...portal-network@v0.74.0) (2025-01-28)
4
11
 
5
12
 
@@ -158,6 +158,7 @@ export type AccountMemberStackspotIamDto = {
158
158
  properties?: {
159
159
  [key: string]: object;
160
160
  };
161
+ avatarImage?: string;
161
162
  };
162
163
  export type UpdateUserRequest = {
163
164
  /** User username */
@@ -180,6 +181,8 @@ export type UpdateUserRequest = {
180
181
  company?: string;
181
182
  /** User new password */
182
183
  password?: string;
184
+ /** Image profile */
185
+ avatarImageBase64?: string;
183
186
  };
184
187
  export type UpdateUserResponse = {
185
188
  username?: string;
@@ -192,6 +195,7 @@ export type UpdateUserResponse = {
192
195
  isActive?: boolean;
193
196
  company?: string;
194
197
  password?: string;
198
+ avatarImage?: string;
195
199
  };
196
200
  export type UpdatePasswordRequest = {
197
201
  /** New password */
@@ -629,7 +633,7 @@ export type AccountMemberResponse = {
629
633
  /** Account member status */
630
634
  isActive: boolean;
631
635
  /** Account member avatar URL */
632
- avatarUrl?: string;
636
+ avatarImage?: string;
633
637
  /** Account member full name */
634
638
  name: string;
635
639
  };
@@ -654,6 +658,8 @@ export type CreateUserRequest = {
654
658
  password?: string;
655
659
  /** User Company */
656
660
  company?: string;
661
+ /** Image profile */
662
+ avatarImageBase64?: string;
657
663
  };
658
664
  export type CreateUserResponse = {
659
665
  username: string;
@@ -796,6 +802,97 @@ export type CreateFeatureFlagRequest = {
796
802
  /** The feature flag description */
797
803
  description: string;
798
804
  };
805
+ export type ExtensionInfoByLanguageResponse = {
806
+ pt?: string;
807
+ en?: string;
808
+ };
809
+ export type ExtensionReadResponse = {
810
+ /** Extension Id */
811
+ id: string;
812
+ /** Extension Slug */
813
+ slug: string;
814
+ description?: ExtensionInfoByLanguageResponse;
815
+ displayName?: ExtensionInfoByLanguageResponse;
816
+ /** The Id from active extension version */
817
+ activeVersionId?: string;
818
+ };
819
+ export type ExtensionInfoByLanguageRequest = {
820
+ pt?: string;
821
+ en?: string;
822
+ };
823
+ export type ExtensionCreateRequest = {
824
+ /** The slug to use in URL as unique identifying part representing the extension */
825
+ slug: string;
826
+ description?: ExtensionInfoByLanguageRequest;
827
+ displayName?: ExtensionInfoByLanguageRequest;
828
+ };
829
+ export type ExtensionVersionResumedReadResponse = {
830
+ /** Extension Version Id */
831
+ id: string;
832
+ /** Extension Slug */
833
+ extensionSlug: string;
834
+ /** The extension version name */
835
+ name: string;
836
+ /** The extension version content url */
837
+ dataUrl: string;
838
+ /** The extension version date and time of creation */
839
+ createdAt: string;
840
+ };
841
+ export type ExtensionVersionCreateResponse = {
842
+ /** Extension Version Id */
843
+ id: string;
844
+ /** The extension version name */
845
+ version: string;
846
+ /** The extension version date and time of creation */
847
+ createdAt: string;
848
+ };
849
+ export type ExtensionLinkReadResponse = {
850
+ /** Extension Link Id */
851
+ id: string;
852
+ /** Extension Slug related with the link */
853
+ extensionSlug: string;
854
+ /** The extension Link type */
855
+ "type": string;
856
+ /** The extension Link path */
857
+ path?: string;
858
+ /** The workspace id where the Extension should be displayed */
859
+ workspaceId?: string;
860
+ /** The menu height from Extension */
861
+ height?: number;
862
+ /** The menu weight from Extension */
863
+ weight?: number;
864
+ displayName?: ExtensionInfoByLanguageResponse;
865
+ };
866
+ export type ExtensionLinkCreateRequest = {
867
+ /** The slug from related Extension */
868
+ extensionSlug: string;
869
+ /** The type of the Extension Link */
870
+ "type": string;
871
+ /** The Workspace Id where the Extension should be displayed */
872
+ workspaceId?: string;
873
+ /** The Extension menu height */
874
+ height?: number;
875
+ /** The Extension menu weight */
876
+ weight?: number;
877
+ /** The Extension path */
878
+ path?: string;
879
+ };
880
+ export type ExtensionLinkCreateResponse = {
881
+ /** Extension Link Id */
882
+ id: string;
883
+ /** Extension Slug related with the Link */
884
+ extensionSlug: string;
885
+ /** The type of the Extension Link */
886
+ "type": string;
887
+ /** The Workspace Id where the Extension should be displayed */
888
+ workspaceId?: string;
889
+ /** The Extension menu height */
890
+ height?: number;
891
+ /** The Extension menu weight */
892
+ weight?: number;
893
+ /** The Extension path */
894
+ path?: string;
895
+ };
799
896
  export type WelcomeEmailRequest = {
800
897
  /** Firstname of the contact requester */
801
898
  firstName: string;
@@ -1151,6 +1248,24 @@ export type UpdateGroupPermissionsRequest = {
1151
1248
  /** Slug from resource */
1152
1249
  resourceSlug: string;
1153
1250
  };
1251
+ export type ExtensionUpdateRequest = {
1252
+ /** The Id from active extension version */
1253
+ activeVersionId?: string;
1254
+ description?: ExtensionInfoByLanguageRequest;
1255
+ displayName?: ExtensionInfoByLanguageRequest;
1256
+ };
1257
+ export type ExtensionLinkUpdateRequest = {
1258
+ /** The type of the Extension Link */
1259
+ "type"?: string;
1260
+ /** The Workspace Id where the Extension should be displayed */
1261
+ workspaceId?: string;
1262
+ /** The Extension menu height */
1263
+ height?: number;
1264
+ /** The Extension menu weight */
1265
+ weight?: number;
1266
+ /** The Extension path */
1267
+ path?: string;
1268
+ };
1154
1269
  export type AddNewEmailDomainRequest = {
1155
1270
  /** Email domains list that account users will use to login into StackSpot. Example: zup.com.br */
1156
1271
  domains: string[];
@@ -1469,6 +1584,23 @@ export type ResourceDto = {
1469
1584
  description?: string;
1470
1585
  "type"?: ResourceTypeDto;
1471
1586
  };
1587
+ export type ExtensionVersionInfoByLanguageResponse = {
1588
+ pt?: string;
1589
+ en?: string;
1590
+ };
1591
+ export type ExtensionVersionResponse = {
1592
+ /** Extension Version Id */
1593
+ id: string;
1594
+ /** Extension Slug */
1595
+ extensionSlug: string;
1596
+ /** The extension version name */
1597
+ name: string;
1598
+ /** The extension version content url */
1599
+ dataUrl: string;
1600
+ /** The extension version date and time of creation */
1601
+ createdAt: string;
1602
+ displayName?: ExtensionVersionInfoByLanguageResponse;
1603
+ };
1472
1604
  export type AccountAuthenticationConfigResponse = {
1473
1605
  /** OpenID Well Known url for current account */
1474
1606
  openIdWellKnownUrl: string;
@@ -2096,6 +2228,47 @@ export declare function getFeatures(opts?: Oazapfts.RequestOpts): Promise<Featur
2096
2228
  export declare function create({ createFeatureFlagRequest }: {
2097
2229
  createFeatureFlagRequest: CreateFeatureFlagRequest;
2098
2230
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2231
+ /**
2232
+ * List all Account Extensions
2233
+ */
2234
+ export declare function listExtensions(opts?: Oazapfts.RequestOpts): Promise<ExtensionReadResponse[]>;
2235
+ /**
2236
+ * Create Account Extension
2237
+ */
2238
+ export declare function createExtension({ extensionCreateRequest }: {
2239
+ extensionCreateRequest: ExtensionCreateRequest;
2240
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2241
+ /**
2242
+ * List all Account Extension Versions
2243
+ */
2244
+ export declare function listExtensionVersions({ slug }: {
2245
+ slug: string;
2246
+ }, opts?: Oazapfts.RequestOpts): Promise<ExtensionVersionResumedReadResponse[]>;
2247
+ /**
2248
+ * Create Account Extension Version
2249
+ */
2250
+ export declare function createExtensionVersion({ slug, name, body }: {
2251
+ slug: string;
2252
+ name: string;
2253
+ body?: {
2254
+ file: Blob;
2255
+ };
2256
+ }, opts?: Oazapfts.RequestOpts): Promise<ExtensionVersionCreateResponse>;
2257
+ /**
2258
+ * List all Account Extension Links
2259
+ */
2260
+ export declare function listExtensionLinks({ workspaceId, $type, extensionSlug, showOnlyActive }: {
2261
+ workspaceId?: string;
2262
+ $type?: string;
2263
+ extensionSlug?: any;
2264
+ showOnlyActive?: any;
2265
+ }, opts?: Oazapfts.RequestOpts): Promise<ExtensionLinkReadResponse[]>;
2266
+ /**
2267
+ * Create Account Extension Link
2268
+ */
2269
+ export declare function createExtensionLink({ extensionLinkCreateRequest }: {
2270
+ extensionLinkCreateRequest: ExtensionLinkCreateRequest;
2271
+ }, opts?: Oazapfts.RequestOpts): Promise<ExtensionLinkCreateResponse>;
2099
2272
  /**
2100
2273
  * Send Welcome Email
2101
2274
  */
@@ -2378,6 +2551,32 @@ export declare function enable({ id }: {
2378
2551
  export declare function disable({ id }: {
2379
2552
  id: number;
2380
2553
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2554
+ /**
2555
+ * Delete Account Extension
2556
+ */
2557
+ export declare function deleteExtension({ slug }: {
2558
+ slug: string;
2559
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2560
+ /**
2561
+ * Update Account Extension
2562
+ */
2563
+ export declare function updateExtension({ slug, extensionUpdateRequest }: {
2564
+ slug: string;
2565
+ extensionUpdateRequest: ExtensionUpdateRequest;
2566
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2567
+ /**
2568
+ * Delete Account Extension Link
2569
+ */
2570
+ export declare function deleteExtensionLink({ id }: {
2571
+ id: string;
2572
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2573
+ /**
2574
+ * Update Account Extension Link
2575
+ */
2576
+ export declare function updateExtensionLink({ id, extensionLinkUpdateRequest }: {
2577
+ id: string;
2578
+ extensionLinkUpdateRequest: ExtensionLinkUpdateRequest;
2579
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2381
2580
  /**
2382
2581
  * Adds a new email domain to an existing account
2383
2582
  */
@@ -2830,6 +3029,26 @@ export declare function getAccountMembersToCollaborators({ size, page, sort, dir
2830
3029
  multiFilterMode?: string;
2831
3030
  filterIn?: any;
2832
3031
  }, opts?: Oazapfts.RequestOpts): Promise<AccountMemberResponse[]>;
3032
+ /**
3033
+ * Get a Account Extension Version
3034
+ */
3035
+ export declare function getExtensionVersion({ slug, versionName }: {
3036
+ slug: string;
3037
+ versionName: string;
3038
+ }, opts?: Oazapfts.RequestOpts): Promise<ExtensionVersionResponse>;
3039
+ /**
3040
+ * Delete Account Extension Version
3041
+ */
3042
+ export declare function deleteExtensionVersion({ slug, versionName }: {
3043
+ slug: string;
3044
+ versionName: string;
3045
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3046
+ /**
3047
+ * Get the active Extension Version
3048
+ */
3049
+ export declare function getActiveExtensionVersion({ slug }: {
3050
+ slug: string;
3051
+ }, opts?: Oazapfts.RequestOpts): Promise<ExtensionVersionResponse>;
2833
3052
  /**
2834
3053
  * Get Authentication Configuration for account
2835
3054
  */
@@ -2912,6 +3131,12 @@ export declare function removeRoleFromMember({ roleId, memberId }: {
2912
3131
  export declare function deleteResource({ resourceId }: {
2913
3132
  resourceId: string;
2914
3133
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3134
+ /**
3135
+ * Removes member profile image
3136
+ */
3137
+ export declare function deleteProfileImage({ memberId }: {
3138
+ memberId: string;
3139
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2915
3140
  /**
2916
3141
  * Remove resource from member favorites
2917
3142
  */