@stack-spot/portal-network 0.133.2 → 0.134.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.
@@ -6,6 +6,7 @@
6
6
  */
7
7
  import * as Oazapfts from "@oazapfts/runtime"
8
8
  import * as QS from "@oazapfts/runtime/query"
9
+
9
10
  export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
10
11
  headers: {},
11
12
  baseUrl: "https://account-account-api.stg.stackspot.com",
@@ -1148,12 +1149,14 @@ export type PersonalLeadRequest = {
1148
1149
  name: string
1149
1150
  /** Lead email */
1150
1151
  email: string
1152
+ /** Account owner's area of work */
1153
+ workArea: "DATA" | "PRODUCT_DESIGN" | "SOFTWARE_DEVELOPMENT" | "QA" | "INFRA_CLOUD" | "BUSINESS_OPERATIONS" | "MARKETING_SALES" | "OTHER"
1151
1154
  /** Lead phone number */
1152
- phone: string
1155
+ phone?: string
1153
1156
  /** Preferred contact method */
1154
- contactPreference: "EMAIL" | "PHONE"
1157
+ contactPreference?: "EMAIL" | "PHONE"
1155
1158
  /** Contact reason */
1156
- reason: string
1159
+ reason?: string
1157
1160
  }
1158
1161
  export type LeadResponse = {
1159
1162
  /** Unique identifier of the lead. */
@@ -1164,40 +1167,52 @@ export type LeadResponse = {
1164
1167
  name: string
1165
1168
  /** Email address of the lead. */
1166
1169
  email: string
1167
- /** Phone number of the lead, including country code if applicable. */
1168
- phone: string
1169
- /** Reason for the lead's contact or inquiry. */
1170
- reason: string
1171
1170
  /** Name of the company associated with the lead, if applicable. */
1172
1171
  companyName?: string | null
1173
- /** Industry of the company associated with the lead, if applicable. */
1174
- companyIndustry?: string | null
1175
- /** Size of the team in the company associated with the lead, if applicable. */
1176
- teamSize?: string | null
1177
- /** Preferred contact method. */
1178
- contactPreference?: ("EMAIL" | "PHONE") | null
1179
1172
  /** Timestamp when the lead was created. */
1180
1173
  createdAt: string
1181
1174
  /** Timestamp when the lead was last updated, if applicable. */
1182
1175
  updatedAt?: string | null
1183
1176
  /** Timestamp when the lead was deleted, if applicable. */
1184
1177
  deletedAt?: string | null
1178
+ /** Trial user's company size */
1179
+ companySize?: ("STARTUP" | "SMALL" | "MEDIUM" | "LARGE") | null
1180
+ /** Account owner's area of work */
1181
+ workArea: "DATA" | "PRODUCT_DESIGN" | "SOFTWARE_DEVELOPMENT" | "QA" | "INFRA_CLOUD" | "BUSINESS_OPERATIONS" | "MARKETING_SALES" | "OTHER"
1182
+ /** The job title of trial user */
1183
+ jobTitle?: ("INTERN" | "ANALYST" | "SPECIALIST" | "LEAD" | "DIRECTOR" | "C_LEVEL") | null
1184
+ /** Phone number of the lead, including country code if applicable. */
1185
+ phone?: string | null
1186
+ /** Reason for the lead's contact or inquiry. */
1187
+ reason?: string | null
1188
+ /** Industry of the company associated with the lead, if applicable. */
1189
+ companyIndustry?: string | null
1190
+ /** Size of the team in the company associated with the lead, if applicable. */
1191
+ teamSize?: string | null
1192
+ /** Preferred contact method. */
1193
+ contactPreference?: ("EMAIL" | "PHONE") | null
1185
1194
  }
1186
1195
  export type EnterpriseLeadRequest = {
1187
1196
  /** Lead name */
1188
1197
  name: string
1189
1198
  /** Lead email */
1190
1199
  email: string
1191
- /** Lead phone number */
1192
- phone: string
1193
1200
  /** Company name */
1194
1201
  companyName: string
1202
+ /** Trial user's company size */
1203
+ companySize: "STARTUP" | "SMALL" | "MEDIUM" | "LARGE"
1204
+ /** Account owner's area of work */
1205
+ workArea: "DATA" | "PRODUCT_DESIGN" | "SOFTWARE_DEVELOPMENT" | "QA" | "INFRA_CLOUD" | "BUSINESS_OPERATIONS" | "MARKETING_SALES" | "OTHER"
1206
+ /** The job title of trial user */
1207
+ jobTitle: "INTERN" | "ANALYST" | "SPECIALIST" | "LEAD" | "DIRECTOR" | "C_LEVEL"
1208
+ /** Lead phone number */
1209
+ phone?: string
1195
1210
  /** Company industry */
1196
- companyIndustry: string
1211
+ companyIndustry?: string
1197
1212
  /** Team size */
1198
- teamSize: string
1213
+ teamSize?: string
1199
1214
  /** Contact reason */
1200
- reason: string
1215
+ reason?: string
1201
1216
  }
1202
1217
  export type CreateUserInvitationRequest = {
1203
1218
  /** User email */
@@ -1489,6 +1504,10 @@ export type AccountTrialCreateRequest = {
1489
1504
  slug: string
1490
1505
  /** The full name of the person who is creating a trial account */
1491
1506
  fullName: string
1507
+ /** Account owner's area of work */
1508
+ workArea: "DATA" | "PRODUCT_DESIGN" | "SOFTWARE_DEVELOPMENT" | "QA" | "INFRA_CLOUD" | "BUSINESS_OPERATIONS" | "MARKETING_SALES" | "OTHER"
1509
+ /** The campaign code */
1510
+ campaignCode?: string
1492
1511
  /** The company name where the trial user is related */
1493
1512
  companyName?: string
1494
1513
  /** The company amount of people where the trial user is related */
@@ -1501,8 +1520,6 @@ export type AccountTrialCreateRequest = {
1501
1520
  reachedBy?: ("GOOGLE_SEARCH" | "REFERRAL" | "SOCIAL_MEDIA" | "ONLINE_AD" | "EVENT_CONFERENCE" | "EMAIL_CAMPAIGN" | "FRIEND_COLLEAGUE" | "BLOG_ARTICLE" | "YOUTUBE_VIDEO_CONTENT" | "ZUP_OFFICIAL_CHANNELS" | "OTHER")[]
1502
1521
  /** The custom channel used for the trial user to reach Stackspot */
1503
1522
  customReachedBy?: string
1504
- /** The campaign code */
1505
- campaignCode?: string
1506
1523
  }
1507
1524
  export type PersonalAccountExpirationDataResponse = {
1508
1525
  /** Account id */
@@ -2202,7 +2219,7 @@ export type Campaign = {
2202
2219
  id: string
2203
2220
  rewardType: "DAYS" | "TOKENS"
2204
2221
  rewardAmount: number
2205
- }
2222
+ } | null
2206
2223
  export type PersonalAccountDetailsResponse = {
2207
2224
  /** Unique identifier of the personal account. */
2208
2225
  id: number
@@ -2210,6 +2227,13 @@ export type PersonalAccountDetailsResponse = {
2210
2227
  accountId: string
2211
2228
  /** Full name of the account owner. */
2212
2229
  fullName: string
2230
+ /** Date and time until the account is valid. */
2231
+ validUntil: string
2232
+ /** Date and time that the account was created. */
2233
+ createdAt: string
2234
+ campaign?: Campaign
2235
+ /** Account owner's area of work */
2236
+ workArea: "DATA" | "PRODUCT_DESIGN" | "SOFTWARE_DEVELOPMENT" | "QA" | "INFRA_CLOUD" | "BUSINESS_OPERATIONS" | "MARKETING_SALES" | "OTHER"
2213
2237
  /** Name of the company associated with the account. */
2214
2238
  companyName?: string | null
2215
2239
  /** Size of the company associated with the account. */
@@ -2222,11 +2246,6 @@ export type PersonalAccountDetailsResponse = {
2222
2246
  reachedBy?: (("GOOGLE_SEARCH" | "REFERRAL" | "SOCIAL_MEDIA" | "ONLINE_AD" | "EVENT_CONFERENCE" | "EMAIL_CAMPAIGN" | "FRIEND_COLLEAGUE" | "BLOG_ARTICLE" | "YOUTUBE_VIDEO_CONTENT" | "ZUP_OFFICIAL_CHANNELS" | "OTHER") | null)[] | null
2223
2247
  /** Custom description of how the account owner was reached, if not listed. */
2224
2248
  customReachedBy?: string | null
2225
- /** Date and time until the account is valid. */
2226
- validUntil: string
2227
- /** Date and time that the account was created. */
2228
- createdAt: string
2229
- campaign?: Campaign
2230
2249
  }
2231
2250
  export type AccountSsoResponse = {
2232
2251
  /** SSO configuration name */
@@ -5,7 +5,6 @@ import { DefaultAPIError } from '../error/DefaultAPIError'
5
5
  import { actionDictionary } from '../error/dictionary/action'
6
6
  import { StackspotAPIError } from '../error/StackspotAPIError'
7
7
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
8
- import { removeAuthorizationParam } from '../utils/remove-authorization-param'
9
8
 
10
9
  class ApiManagementClient extends ReactQueryNetworkClient {
11
10
  constructor() {
@@ -19,17 +18,17 @@ class ApiManagementClient extends ReactQueryNetworkClient {
19
18
  /**
20
19
  * Get list
21
20
  */
22
- getList = this.mutation(removeAuthorizationParam(getEntries))
21
+ getList = this.query(getEntries)
23
22
 
24
23
  /**
25
24
  * Get api by id
26
25
  */
27
- getApiById = this.mutation(getEntryById)
26
+ getApiById = this.query(getEntryById)
28
27
 
29
28
  /**
30
29
  * Gets the version of one api
31
30
  */
32
- getApiVersions = this.query(removeAuthorizationParam(getSubEntries))
31
+ getApiVersions = this.query(getSubEntries)
33
32
 
34
33
  }
35
34
 
@@ -83,6 +83,7 @@ export const workspaceDictionary = {
83
83
  WKS_CONTEXT_ATTRIBUTE_CONNECTION_TYPE_ERROR: "Field '{1}' doesn't accept value '{2}'. No connection interfaces were found of type '{3}'",
84
84
  WKS_CONTEXT_ATTRIBUTE_GENERATED_CONNECTION_TYPE_ERROR: "Field '{1}' doesn't accept value '{2}'. Connection interface already exists",
85
85
  WKS_CONTEXT_ATTRIBUTE_CANNOT_VARY_PER_ENV: "Field '{1}' doesn't allow varying per environment",
86
+ WKS_STK_FILE_FOUND_BUT_NOT_ASSOCIATED: 'Found stk.yaml files in the repository, but none are associated with the specified application or infra',
86
87
  SCM_API_4001_GITHUB_GET_REPO_BRANCHES_NOT_FOUND: 'The specified repository could not be found on GitHub.',
87
88
  SCM_API_4002_GITHUB_GET_REPO_BRANCHES_UNAUTHORIZED: 'Unauthorized access to the repository on GitHub. Please check your credentials.',
88
89
  SCM_API_4002_GITHUB_GET_REPO_BRANCHES_FORBIDDEN: 'Access to the repository on GitHub is forbidden. Verify your permissions.',
@@ -184,6 +185,7 @@ export const workspaceDictionary = {
184
185
  WKS_CONTEXT_ATTRIBUTE_CONNECTION_TYPE_ERROR: 'O campo {1} não aceita o valor {2}. Nenhuma interface de conexão foi encontrada do tipo {3}',
185
186
  WKS_CONTEXT_ATTRIBUTE_GENERATED_CONNECTION_TYPE_ERROR: 'O campo {1} não aceita o valor {2}. A interface de conexão já existe',
186
187
  WKS_CONTEXT_ATTRIBUTE_CANNOT_VARY_PER_ENV: 'O campo {1} não permite variação por ambiente',
188
+ WKS_STK_FILE_FOUND_BUT_NOT_ASSOCIATED: 'Foram encontrados arquivos stk.yaml no repositório, mas nenhum está associado à aplicação ou infraestrutura especificada.',
187
189
  SCM_API_4001_GITHUB_GET_REPO_BRANCHES_NOT_FOUND: 'O repositório especificado não foi encontrado no GitHub.',
188
190
  SCM_API_4002_GITHUB_GET_REPO_BRANCHES_UNAUTHORIZED: 'Acesso não autorizado ao repositório no GitHub. Verifique suas credenciais.',
189
191
  SCM_API_4002_GITHUB_GET_REPO_BRANCHES_FORBIDDEN: 'Acesso ao repositório no GitHub foi proibido. Verifique suas permissões.',