@azure/arm-pineconevectordb 1.0.0-beta.1 → 1.0.0-beta.2
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 +19 -0
- package/LICENSE +1 -1
- package/README.md +5 -5
- package/dist/browser/api/index.d.ts +0 -1
- package/dist/browser/api/index.d.ts.map +1 -1
- package/dist/browser/api/index.js.map +1 -1
- package/dist/browser/api/operations/index.d.ts +2 -8
- package/dist/browser/api/operations/index.d.ts.map +1 -1
- package/dist/browser/api/operations/index.js +1 -18
- package/dist/browser/api/operations/index.js.map +1 -1
- package/dist/browser/api/operations/operations.d.ts +10 -0
- package/dist/browser/api/operations/operations.d.ts.map +1 -0
- package/dist/browser/api/operations/operations.js +29 -0
- package/dist/browser/api/operations/operations.js.map +1 -0
- package/dist/browser/api/operations/options.d.ts +5 -0
- package/dist/browser/api/operations/options.d.ts.map +1 -0
- package/dist/browser/api/operations/options.js.map +1 -0
- package/dist/browser/api/organizations/index.d.ts +2 -34
- package/dist/browser/api/organizations/index.d.ts.map +1 -1
- package/dist/browser/api/organizations/index.js +1 -131
- package/dist/browser/api/organizations/index.js.map +1 -1
- package/dist/browser/api/organizations/operations.d.ts +36 -0
- package/dist/browser/api/organizations/operations.d.ts.map +1 -0
- package/dist/browser/api/organizations/operations.js +180 -0
- package/dist/browser/api/organizations/operations.js.map +1 -0
- package/dist/browser/api/{options.d.ts → organizations/options.d.ts} +0 -3
- package/dist/browser/api/organizations/options.d.ts.map +1 -0
- package/dist/browser/api/organizations/options.js.map +1 -0
- package/dist/browser/api/vectorDbContext.js +1 -1
- package/dist/browser/api/vectorDbContext.js.map +1 -1
- package/dist/browser/classic/operations/index.d.ts +2 -5
- package/dist/browser/classic/operations/index.d.ts.map +1 -1
- package/dist/browser/classic/operations/index.js +4 -4
- package/dist/browser/classic/operations/index.js.map +1 -1
- package/dist/browser/classic/organizations/index.d.ts +2 -10
- package/dist/browser/classic/organizations/index.d.ts.map +1 -1
- package/dist/browser/classic/organizations/index.js +4 -4
- package/dist/browser/classic/organizations/index.js.map +1 -1
- package/dist/browser/index.d.ts +4 -2
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -1
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +41 -7
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +37 -2
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js +1 -1
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.js +168 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/browser/vectorDbClient.d.ts +1 -1
- package/dist/browser/vectorDbClient.d.ts.map +1 -1
- package/dist/browser/vectorDbClient.js +4 -4
- package/dist/browser/vectorDbClient.js.map +1 -1
- package/dist/commonjs/api/index.d.ts +0 -1
- package/dist/commonjs/api/index.d.ts.map +1 -1
- package/dist/commonjs/api/index.js.map +1 -1
- package/dist/commonjs/api/operations/index.d.ts +2 -8
- package/dist/commonjs/api/operations/index.d.ts.map +1 -1
- package/dist/commonjs/api/operations/index.js +3 -21
- package/dist/commonjs/api/operations/index.js.map +1 -1
- package/dist/commonjs/api/operations/operations.d.ts +10 -0
- package/dist/commonjs/api/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/api/operations/operations.js +34 -0
- package/dist/commonjs/api/operations/operations.js.map +1 -0
- package/dist/commonjs/api/operations/options.d.ts +5 -0
- package/dist/commonjs/api/operations/options.d.ts.map +1 -0
- package/dist/commonjs/api/operations/options.js.map +1 -0
- package/dist/commonjs/api/organizations/index.d.ts +2 -34
- package/dist/commonjs/api/organizations/index.d.ts.map +1 -1
- package/dist/commonjs/api/organizations/index.js +8 -149
- package/dist/commonjs/api/organizations/index.js.map +1 -1
- package/dist/commonjs/api/organizations/operations.d.ts +36 -0
- package/dist/commonjs/api/organizations/operations.d.ts.map +1 -0
- package/dist/commonjs/api/organizations/operations.js +200 -0
- package/dist/commonjs/api/organizations/operations.js.map +1 -0
- package/dist/{esm/api → commonjs/api/organizations}/options.d.ts +0 -3
- package/dist/commonjs/api/organizations/options.d.ts.map +1 -0
- package/dist/commonjs/api/organizations/options.js +5 -0
- package/dist/commonjs/api/organizations/options.js.map +1 -0
- package/dist/commonjs/api/vectorDbContext.js +1 -1
- package/dist/commonjs/api/vectorDbContext.js.map +1 -1
- package/dist/commonjs/classic/operations/index.d.ts +2 -5
- package/dist/commonjs/classic/operations/index.d.ts.map +1 -1
- package/dist/commonjs/classic/operations/index.js +6 -7
- package/dist/commonjs/classic/operations/index.js.map +1 -1
- package/dist/commonjs/classic/organizations/index.d.ts +2 -10
- package/dist/commonjs/classic/organizations/index.d.ts.map +1 -1
- package/dist/commonjs/classic/organizations/index.js +11 -12
- package/dist/commonjs/classic/organizations/index.js.map +1 -1
- package/dist/commonjs/index.d.ts +4 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +41 -7
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +43 -2
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/restorePollerHelpers.js +3 -3
- package/dist/commonjs/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +171 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/commonjs/vectorDbClient.d.ts +1 -1
- package/dist/commonjs/vectorDbClient.d.ts.map +1 -1
- package/dist/commonjs/vectorDbClient.js +6 -6
- package/dist/commonjs/vectorDbClient.js.map +1 -1
- package/dist/esm/api/index.d.ts +0 -1
- package/dist/esm/api/index.d.ts.map +1 -1
- package/dist/esm/api/index.js.map +1 -1
- package/dist/esm/api/operations/index.d.ts +2 -8
- package/dist/esm/api/operations/index.d.ts.map +1 -1
- package/dist/esm/api/operations/index.js +1 -18
- package/dist/esm/api/operations/index.js.map +1 -1
- package/dist/esm/api/operations/operations.d.ts +10 -0
- package/dist/esm/api/operations/operations.d.ts.map +1 -0
- package/dist/esm/api/operations/operations.js +29 -0
- package/dist/esm/api/operations/operations.js.map +1 -0
- package/dist/esm/api/operations/options.d.ts +5 -0
- package/dist/esm/api/operations/options.d.ts.map +1 -0
- package/dist/esm/api/operations/options.js.map +1 -0
- package/dist/esm/api/organizations/index.d.ts +2 -34
- package/dist/esm/api/organizations/index.d.ts.map +1 -1
- package/dist/esm/api/organizations/index.js +1 -131
- package/dist/esm/api/organizations/index.js.map +1 -1
- package/dist/esm/api/organizations/operations.d.ts +36 -0
- package/dist/esm/api/organizations/operations.d.ts.map +1 -0
- package/dist/esm/api/organizations/operations.js +180 -0
- package/dist/esm/api/organizations/operations.js.map +1 -0
- package/dist/{commonjs/api → esm/api/organizations}/options.d.ts +0 -3
- package/dist/esm/api/organizations/options.d.ts.map +1 -0
- package/dist/esm/api/organizations/options.js +4 -0
- package/dist/esm/api/organizations/options.js.map +1 -0
- package/dist/esm/api/vectorDbContext.js +1 -1
- package/dist/esm/api/vectorDbContext.js.map +1 -1
- package/dist/esm/classic/operations/index.d.ts +2 -5
- package/dist/esm/classic/operations/index.d.ts.map +1 -1
- package/dist/esm/classic/operations/index.js +4 -4
- package/dist/esm/classic/operations/index.js.map +1 -1
- package/dist/esm/classic/organizations/index.d.ts +2 -10
- package/dist/esm/classic/organizations/index.d.ts.map +1 -1
- package/dist/esm/classic/organizations/index.js +4 -4
- package/dist/esm/classic/organizations/index.js.map +1 -1
- package/dist/esm/index.d.ts +4 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +41 -7
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +37 -2
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js +1 -1
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.js +168 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/dist/esm/vectorDbClient.d.ts +1 -1
- package/dist/esm/vectorDbClient.d.ts.map +1 -1
- package/dist/esm/vectorDbClient.js +4 -4
- package/dist/esm/vectorDbClient.js.map +1 -1
- package/dist/react-native/api/index.d.ts +0 -1
- package/dist/react-native/api/index.d.ts.map +1 -1
- package/dist/react-native/api/index.js.map +1 -1
- package/dist/react-native/api/operations/index.d.ts +2 -8
- package/dist/react-native/api/operations/index.d.ts.map +1 -1
- package/dist/react-native/api/operations/index.js +1 -18
- package/dist/react-native/api/operations/index.js.map +1 -1
- package/dist/react-native/api/operations/operations.d.ts +10 -0
- package/dist/react-native/api/operations/operations.d.ts.map +1 -0
- package/dist/react-native/api/operations/operations.js +29 -0
- package/dist/react-native/api/operations/operations.js.map +1 -0
- package/dist/react-native/api/operations/options.d.ts +5 -0
- package/dist/react-native/api/operations/options.d.ts.map +1 -0
- package/dist/react-native/api/operations/options.js +4 -0
- package/dist/react-native/api/operations/options.js.map +1 -0
- package/dist/react-native/api/organizations/index.d.ts +2 -34
- package/dist/react-native/api/organizations/index.d.ts.map +1 -1
- package/dist/react-native/api/organizations/index.js +1 -131
- package/dist/react-native/api/organizations/index.js.map +1 -1
- package/dist/react-native/api/organizations/operations.d.ts +36 -0
- package/dist/react-native/api/organizations/operations.d.ts.map +1 -0
- package/dist/react-native/api/organizations/operations.js +180 -0
- package/dist/react-native/api/organizations/operations.js.map +1 -0
- package/dist/react-native/api/{options.d.ts → organizations/options.d.ts} +0 -3
- package/dist/react-native/api/organizations/options.d.ts.map +1 -0
- package/dist/react-native/api/organizations/options.js +4 -0
- package/dist/react-native/api/organizations/options.js.map +1 -0
- package/dist/react-native/api/vectorDbContext.js +1 -1
- package/dist/react-native/api/vectorDbContext.js.map +1 -1
- package/dist/react-native/classic/operations/index.d.ts +2 -5
- package/dist/react-native/classic/operations/index.d.ts.map +1 -1
- package/dist/react-native/classic/operations/index.js +4 -4
- package/dist/react-native/classic/operations/index.js.map +1 -1
- package/dist/react-native/classic/organizations/index.d.ts +2 -10
- package/dist/react-native/classic/organizations/index.d.ts.map +1 -1
- package/dist/react-native/classic/organizations/index.js +4 -4
- package/dist/react-native/classic/organizations/index.js.map +1 -1
- package/dist/react-native/index.d.ts +4 -2
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1 -1
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +41 -7
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +37 -2
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.js +1 -1
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.js +168 -0
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
- package/dist/react-native/vectorDbClient.d.ts +1 -1
- package/dist/react-native/vectorDbClient.d.ts.map +1 -1
- package/dist/react-native/vectorDbClient.js +4 -4
- package/dist/react-native/vectorDbClient.js.map +1 -1
- package/package.json +71 -15
- package/review/arm-pineconevectordb-api-operations.api.md +19 -0
- package/review/arm-pineconevectordb-api-organizations.api.md +58 -0
- package/review/arm-pineconevectordb-api.api.md +27 -0
- package/review/arm-pineconevectordb-models.api.md +25 -5
- package/review/arm-pineconevectordb.api.md +25 -5
- package/dist/browser/api/options.d.ts.map +0 -1
- package/dist/browser/api/options.js.map +0 -1
- package/dist/browser/helpers/serializerHelpers.d.ts +0 -3
- package/dist/browser/helpers/serializerHelpers.d.ts.map +0 -1
- package/dist/browser/helpers/serializerHelpers.js +0 -24
- package/dist/browser/helpers/serializerHelpers.js.map +0 -1
- package/dist/commonjs/api/options.d.ts.map +0 -1
- package/dist/commonjs/api/options.js.map +0 -1
- package/dist/commonjs/helpers/serializerHelpers.d.ts +0 -3
- package/dist/commonjs/helpers/serializerHelpers.d.ts.map +0 -1
- package/dist/commonjs/helpers/serializerHelpers.js +0 -27
- package/dist/commonjs/helpers/serializerHelpers.js.map +0 -1
- package/dist/esm/api/options.d.ts.map +0 -1
- package/dist/esm/api/options.js.map +0 -1
- package/dist/esm/helpers/serializerHelpers.d.ts +0 -3
- package/dist/esm/helpers/serializerHelpers.d.ts.map +0 -1
- package/dist/esm/helpers/serializerHelpers.js +0 -24
- package/dist/esm/helpers/serializerHelpers.js.map +0 -1
- package/dist/react-native/api/options.d.ts.map +0 -1
- package/dist/react-native/api/options.js.map +0 -1
- package/dist/react-native/helpers/serializerHelpers.d.ts +0 -3
- package/dist/react-native/helpers/serializerHelpers.d.ts.map +0 -1
- package/dist/react-native/helpers/serializerHelpers.js +0 -24
- package/dist/react-native/helpers/serializerHelpers.js.map +0 -1
- /package/dist/browser/api/{options.js → operations/options.js} +0 -0
- /package/dist/{esm/api → browser/api/organizations}/options.js +0 -0
- /package/dist/commonjs/api/{options.js → operations/options.js} +0 -0
- /package/dist/{react-native/api → esm/api/operations}/options.js +0 -0
|
@@ -25,7 +25,7 @@ export declare function organizationPropertiesDeserializer(item: any): Organizat
|
|
|
25
25
|
/** Marketplace details for an organization */
|
|
26
26
|
export interface MarketplaceDetails {
|
|
27
27
|
/** Azure subscription id for the the marketplace offer is purchased from */
|
|
28
|
-
subscriptionId
|
|
28
|
+
subscriptionId?: string;
|
|
29
29
|
/** Marketplace subscription status */
|
|
30
30
|
readonly subscriptionStatus?: MarketplaceSubscriptionStatus;
|
|
31
31
|
/** Offer details for the marketplace that is selected by the user */
|
|
@@ -75,11 +75,11 @@ export declare function offerDetailsDeserializer(item: any): OfferDetails;
|
|
|
75
75
|
/** User details for an organization */
|
|
76
76
|
export interface UserDetails {
|
|
77
77
|
/** First name of the user */
|
|
78
|
-
firstName
|
|
78
|
+
firstName?: string;
|
|
79
79
|
/** Last name of the user */
|
|
80
|
-
lastName
|
|
80
|
+
lastName?: string;
|
|
81
81
|
/** Email address of the user */
|
|
82
|
-
emailAddress
|
|
82
|
+
emailAddress?: string;
|
|
83
83
|
/** User's principal name */
|
|
84
84
|
upn?: string;
|
|
85
85
|
/** User's phone number */
|
|
@@ -200,10 +200,10 @@ export declare enum KnownManagedServiceIdentityType {
|
|
|
200
200
|
export type ManagedServiceIdentityType = string;
|
|
201
201
|
/** User assigned identity properties */
|
|
202
202
|
export interface UserAssignedIdentity {
|
|
203
|
-
/** The principal ID of the assigned identity. */
|
|
204
|
-
readonly principalId?: string;
|
|
205
203
|
/** The client ID of the assigned identity. */
|
|
206
204
|
readonly clientId?: string;
|
|
205
|
+
/** The principal ID of the assigned identity. */
|
|
206
|
+
readonly principalId?: string;
|
|
207
207
|
}
|
|
208
208
|
export declare function userAssignedIdentitySerializer(item: UserAssignedIdentity): any;
|
|
209
209
|
export declare function userAssignedIdentityDeserializer(item: any): UserAssignedIdentity;
|
|
@@ -267,6 +267,40 @@ export declare enum KnownCreatedByType {
|
|
|
267
267
|
* **Key**: The entity was created by a key.
|
|
268
268
|
*/
|
|
269
269
|
export type CreatedByType = string;
|
|
270
|
+
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */
|
|
271
|
+
export interface ErrorResponse {
|
|
272
|
+
/** The error object. */
|
|
273
|
+
error?: ErrorDetail;
|
|
274
|
+
}
|
|
275
|
+
export declare function errorResponseDeserializer(item: any): ErrorResponse;
|
|
276
|
+
/** The error detail. */
|
|
277
|
+
export interface ErrorDetail {
|
|
278
|
+
/** The error code. */
|
|
279
|
+
readonly code?: string;
|
|
280
|
+
/** The error message. */
|
|
281
|
+
readonly message?: string;
|
|
282
|
+
/** The error target. */
|
|
283
|
+
readonly target?: string;
|
|
284
|
+
/** The error details. */
|
|
285
|
+
readonly details?: ErrorDetail[];
|
|
286
|
+
/** The error additional info. */
|
|
287
|
+
readonly additionalInfo?: ErrorAdditionalInfo[];
|
|
288
|
+
}
|
|
289
|
+
export declare function errorDetailDeserializer(item: any): ErrorDetail;
|
|
290
|
+
export declare function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[];
|
|
291
|
+
export declare function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[];
|
|
292
|
+
/** The resource management error additional info. */
|
|
293
|
+
export interface ErrorAdditionalInfo {
|
|
294
|
+
/** The additional info type. */
|
|
295
|
+
readonly type?: string;
|
|
296
|
+
/** The additional info. */
|
|
297
|
+
readonly info?: Record<string, any>;
|
|
298
|
+
}
|
|
299
|
+
export declare function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo;
|
|
300
|
+
/** model interface _ErrorAdditionalInfoInfo */
|
|
301
|
+
export interface _ErrorAdditionalInfoInfo {
|
|
302
|
+
}
|
|
303
|
+
export declare function _errorAdditionalInfoInfoDeserializer(item: any): _ErrorAdditionalInfoInfo;
|
|
270
304
|
/** The type used for update operations of the Organization Resource. */
|
|
271
305
|
export interface OrganizationResourceUpdate {
|
|
272
306
|
/** Resource tags. */
|
|
@@ -355,6 +389,6 @@ export type ActionType = string;
|
|
|
355
389
|
/** The available API versions. */
|
|
356
390
|
export declare enum KnownVersions {
|
|
357
391
|
/** 2024-10-22-preview version */
|
|
358
|
-
|
|
392
|
+
V20241022Preview = "2024-10-22-preview"
|
|
359
393
|
}
|
|
360
394
|
//# sourceMappingURL=models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAGA,2GAA2G;AAC3G,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D,0DAA0D;IAC1D,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC,gEAAgE;IAChE,QAAQ,CAAC,EAAE,sBAAsB,CAAC;CACnC;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,oBAAoB,GAAG,GAAG,CAW9E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAiBhF;AAED,0CAA0C;AAC1C,MAAM,WAAW,sBAAsB;IACrC,2CAA2C;IAC3C,WAAW,EAAE,kBAAkB,CAAC;IAChC,2BAA2B;IAC3B,IAAI,EAAE,WAAW,CAAC;IAClB,0CAA0C;IAC1C,QAAQ,CAAC,iBAAiB,CAAC,EAAE,yBAAyB,CAAC;IACvD,yBAAyB;IACzB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,gCAAgC;IAChC,sBAAsB,CAAC,EAAE,wBAAwB,CAAC;CACnD;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,sBAAsB,GAAG,GAAG,CAWlF;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAYpF;AAED,8CAA8C;AAC9C,MAAM,WAAW,kBAAkB;IACjC,4EAA4E;IAC5E,cAAc,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAGA,2GAA2G;AAC3G,MAAM,WAAW,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0JAA0J;IAC1J,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,6GAA6G;IAC7G,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAOxE;AAED,2IAA2I;AAC3I,oBAAY,WAAW;IACrB,sDAAsD;IACtD,IAAI,SAAS;IACb,wDAAwD;IACxD,MAAM,WAAW;IACjB,gEAAgE;IAChE,UAAU,gBAAgB;CAC3B;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAE5B,gHAAgH;AAChH,oBAAY,eAAe;IACzB,0CAA0C;IAC1C,QAAQ,aAAa;CACtB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,kCAAkC;AAClC,oBAAY,aAAa;IACvB,iCAAiC;IACjC,gBAAgB,uBAAuB;CACxC"}
|
|
@@ -26,6 +26,12 @@ exports.trackedResourceDeserializer = trackedResourceDeserializer;
|
|
|
26
26
|
exports.resourceSerializer = resourceSerializer;
|
|
27
27
|
exports.resourceDeserializer = resourceDeserializer;
|
|
28
28
|
exports.systemDataDeserializer = systemDataDeserializer;
|
|
29
|
+
exports.errorResponseDeserializer = errorResponseDeserializer;
|
|
30
|
+
exports.errorDetailDeserializer = errorDetailDeserializer;
|
|
31
|
+
exports.errorDetailArrayDeserializer = errorDetailArrayDeserializer;
|
|
32
|
+
exports.errorAdditionalInfoArrayDeserializer = errorAdditionalInfoArrayDeserializer;
|
|
33
|
+
exports.errorAdditionalInfoDeserializer = errorAdditionalInfoDeserializer;
|
|
34
|
+
exports._errorAdditionalInfoInfoDeserializer = _errorAdditionalInfoInfoDeserializer;
|
|
29
35
|
exports.organizationResourceUpdateSerializer = organizationResourceUpdateSerializer;
|
|
30
36
|
exports._organizationResourceListResultDeserializer = _organizationResourceListResultDeserializer;
|
|
31
37
|
exports.organizationResourceArraySerializer = organizationResourceArraySerializer;
|
|
@@ -245,8 +251,8 @@ function userAssignedIdentitySerializer(item) {
|
|
|
245
251
|
}
|
|
246
252
|
function userAssignedIdentityDeserializer(item) {
|
|
247
253
|
return {
|
|
248
|
-
principalId: item["principalId"],
|
|
249
254
|
clientId: item["clientId"],
|
|
255
|
+
principalId: item["principalId"],
|
|
250
256
|
};
|
|
251
257
|
}
|
|
252
258
|
function trackedResourceSerializer(item) {
|
|
@@ -301,6 +307,41 @@ var KnownCreatedByType;
|
|
|
301
307
|
/** The entity was created by a key. */
|
|
302
308
|
KnownCreatedByType["Key"] = "Key";
|
|
303
309
|
})(KnownCreatedByType || (exports.KnownCreatedByType = KnownCreatedByType = {}));
|
|
310
|
+
function errorResponseDeserializer(item) {
|
|
311
|
+
return {
|
|
312
|
+
error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]),
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
function errorDetailDeserializer(item) {
|
|
316
|
+
return {
|
|
317
|
+
code: item["code"],
|
|
318
|
+
message: item["message"],
|
|
319
|
+
target: item["target"],
|
|
320
|
+
details: !item["details"] ? item["details"] : errorDetailArrayDeserializer(item["details"]),
|
|
321
|
+
additionalInfo: !item["additionalInfo"]
|
|
322
|
+
? item["additionalInfo"]
|
|
323
|
+
: errorAdditionalInfoArrayDeserializer(item["additionalInfo"]),
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
function errorDetailArrayDeserializer(result) {
|
|
327
|
+
return result.map((item) => {
|
|
328
|
+
return errorDetailDeserializer(item);
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
function errorAdditionalInfoArrayDeserializer(result) {
|
|
332
|
+
return result.map((item) => {
|
|
333
|
+
return errorAdditionalInfoDeserializer(item);
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
function errorAdditionalInfoDeserializer(item) {
|
|
337
|
+
return {
|
|
338
|
+
type: item["type"],
|
|
339
|
+
info: !item["info"] ? item["info"] : _errorAdditionalInfoInfoDeserializer(item["info"]),
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
function _errorAdditionalInfoInfoDeserializer(item) {
|
|
343
|
+
return item;
|
|
344
|
+
}
|
|
304
345
|
function organizationResourceUpdateSerializer(item) {
|
|
305
346
|
return {
|
|
306
347
|
tags: item["tags"],
|
|
@@ -373,6 +414,6 @@ var KnownActionType;
|
|
|
373
414
|
var KnownVersions;
|
|
374
415
|
(function (KnownVersions) {
|
|
375
416
|
/** 2024-10-22-preview version */
|
|
376
|
-
KnownVersions["
|
|
417
|
+
KnownVersions["V20241022Preview"] = "2024-10-22-preview";
|
|
377
418
|
})(KnownVersions || (exports.KnownVersions = KnownVersions = {}));
|
|
378
419
|
//# sourceMappingURL=models.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAUlC,wEAWC;AAED,4EAiBC;AAgBD,4EAWC;AAED,gFAYC;AAYD,oEAKC;AAED,wEAMC;AA0CD,wDASC;AAED,4DASC;AAgBD,sDAQC;AAED,0DAQC;AA6BD,kEAEC;AAED,sEAIC;AAgBD,gFAYC;AAED,oFAYC;AAqDD,4EAKC;AAED,gFAOC;AAkCD,wEAEC;AAED,4EAKC;AAUD,8DAEC;AAED,kEAWC;AAcD,gDAEC;AAED,oDASC;AAkBD,wDAWC;AAkCD,oFAOC;AAUD,kGAOC;AAED,kFAIC;AAED,sFAIC;AAUD,4EAKC;AAED,gEAIC;AAgBD,sDAQC;AAcD,oEAOC;AAtlBD,SAAgB,8BAA8B,CAAC,IAA0B;IACvE,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC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tB,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;KAC/B,CAAC;AACJ,CAAC;AAcD,SAAgB,4BAA4B,CAAC,IAAS;IACpD,OAAO;QACL,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC;QAC5B,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;KACjC,CAAC;AACJ,CAAC;AAED,2IAA2I;AAC3I,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,sDAAsD;IACtD,4BAAa,CAAA;IACb,wDAAwD;IACxD,gCAAiB,CAAA;IACjB,gEAAgE;IAChE,yCAA0B,CAAA;AAC5B,CAAC,EAPW,WAAW,2BAAX,WAAW,QAOtB;AAaD,gHAAgH;AAChH,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,0CAA0C;IAC1C,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAWD,kCAAkC;AAClC,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,iCAAiC;IACjC,2DAA0C,CAAA;AAC5C,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** Concrete tracked resource types can be created by aliasing this type using a specific property type. */\nexport interface OrganizationResource extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: OrganizationProperties;\n /** The managed service identities assigned to this resource. */\n identity?: ManagedServiceIdentity;\n}\n\nexport function organizationResourceSerializer(item: OrganizationResource): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : organizationPropertiesSerializer(item[\"properties\"]),\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentitySerializer(item[\"identity\"]),\n };\n}\n\nexport function organizationResourceDeserializer(item: any): OrganizationResource {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : organizationPropertiesDeserializer(item[\"properties\"]),\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentityDeserializer(item[\"identity\"]),\n };\n}\n\n/** Properties specific to Organization */\nexport interface OrganizationProperties {\n /** Marketplace details of the resource. */\n marketplace: MarketplaceDetails;\n /** Details of the user. */\n user: UserDetails;\n /** Provisioning state of the resource. */\n readonly provisioningState?: ResourceProvisioningState;\n /** partner properties */\n partnerProperties?: PartnerProperties;\n /** Single sign-on properties */\n singleSignOnProperties?: SingleSignOnPropertiesV2;\n}\n\nexport function organizationPropertiesSerializer(item: OrganizationProperties): any {\n return {\n marketplace: marketplaceDetailsSerializer(item[\"marketplace\"]),\n user: userDetailsSerializer(item[\"user\"]),\n partnerProperties: !item[\"partnerProperties\"]\n ? item[\"partnerProperties\"]\n : partnerPropertiesSerializer(item[\"partnerProperties\"]),\n singleSignOnProperties: !item[\"singleSignOnProperties\"]\n ? item[\"singleSignOnProperties\"]\n : singleSignOnPropertiesV2Serializer(item[\"singleSignOnProperties\"]),\n };\n}\n\nexport function organizationPropertiesDeserializer(item: any): OrganizationProperties {\n return {\n marketplace: marketplaceDetailsDeserializer(item[\"marketplace\"]),\n user: userDetailsDeserializer(item[\"user\"]),\n provisioningState: item[\"provisioningState\"],\n partnerProperties: !item[\"partnerProperties\"]\n ? item[\"partnerProperties\"]\n : partnerPropertiesDeserializer(item[\"partnerProperties\"]),\n singleSignOnProperties: !item[\"singleSignOnProperties\"]\n ? item[\"singleSignOnProperties\"]\n : singleSignOnPropertiesV2Deserializer(item[\"singleSignOnProperties\"]),\n };\n}\n\n/** Marketplace details for an organization */\nexport interface MarketplaceDetails {\n /** Azure subscription id for the the marketplace offer is purchased from */\n subscriptionId: string;\n /** Marketplace subscription status */\n readonly subscriptionStatus?: MarketplaceSubscriptionStatus;\n /** Offer details for the marketplace that is selected by the user */\n offerDetails: OfferDetails;\n}\n\nexport function marketplaceDetailsSerializer(item: MarketplaceDetails): any {\n return {\n subscriptionId: item[\"subscriptionId\"],\n offerDetails: offerDetailsSerializer(item[\"offerDetails\"]),\n };\n}\n\nexport function marketplaceDetailsDeserializer(item: any): MarketplaceDetails {\n return {\n subscriptionId: item[\"subscriptionId\"],\n subscriptionStatus: item[\"subscriptionStatus\"],\n offerDetails: offerDetailsDeserializer(item[\"offerDetails\"]),\n };\n}\n\n/** Marketplace subscription status of a resource. */\nexport enum KnownMarketplaceSubscriptionStatus {\n /** Purchased but not yet activated */\n PendingFulfillmentStart = \"PendingFulfillmentStart\",\n /** Marketplace subscription is activated */\n Subscribed = \"Subscribed\",\n /** This state indicates that a customer's payment for the Marketplace service was not received */\n Suspended = \"Suspended\",\n /** Customer has cancelled the subscription */\n Unsubscribed = \"Unsubscribed\",\n}\n\n/**\n * Marketplace subscription status of a resource. \\\n * {@link KnownMarketplaceSubscriptionStatus} can be used interchangeably with MarketplaceSubscriptionStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **PendingFulfillmentStart**: Purchased but not yet activated \\\n * **Subscribed**: Marketplace subscription is activated \\\n * **Suspended**: This state indicates that a customer's payment for the Marketplace service was not received \\\n * **Unsubscribed**: Customer has cancelled the subscription\n */\nexport type MarketplaceSubscriptionStatus = string;\n\n/** Offer details for the marketplace that is selected by the user */\nexport interface OfferDetails {\n /** Publisher Id for the marketplace offer */\n publisherId: string;\n /** Offer Id for the marketplace offer */\n offerId: string;\n /** Plan Id for the marketplace offer */\n planId: string;\n /** Plan Name for the marketplace offer */\n planName?: string;\n /** Plan Display Name for the marketplace offer */\n termUnit?: string;\n /** Plan Display Name for the marketplace offer */\n termId?: string;\n}\n\nexport function offerDetailsSerializer(item: OfferDetails): any {\n return {\n publisherId: item[\"publisherId\"],\n offerId: item[\"offerId\"],\n planId: item[\"planId\"],\n planName: item[\"planName\"],\n termUnit: item[\"termUnit\"],\n termId: item[\"termId\"],\n };\n}\n\nexport function offerDetailsDeserializer(item: any): OfferDetails {\n return {\n publisherId: item[\"publisherId\"],\n offerId: item[\"offerId\"],\n planId: item[\"planId\"],\n planName: item[\"planName\"],\n termUnit: item[\"termUnit\"],\n termId: item[\"termId\"],\n };\n}\n\n/** User details for an organization */\nexport interface UserDetails {\n /** First name of the user */\n firstName: string;\n /** Last name of the user */\n lastName: string;\n /** Email address of the user */\n emailAddress: string;\n /** User's principal name */\n upn?: string;\n /** User's phone number */\n phoneNumber?: string;\n}\n\nexport function userDetailsSerializer(item: UserDetails): any {\n return {\n firstName: item[\"firstName\"],\n lastName: item[\"lastName\"],\n emailAddress: item[\"emailAddress\"],\n upn: item[\"upn\"],\n phoneNumber: item[\"phoneNumber\"],\n };\n}\n\nexport function userDetailsDeserializer(item: any): UserDetails {\n return {\n firstName: item[\"firstName\"],\n lastName: item[\"lastName\"],\n emailAddress: item[\"emailAddress\"],\n upn: item[\"upn\"],\n phoneNumber: item[\"phoneNumber\"],\n };\n}\n\n/** The provisioning state of a resource type. */\nexport enum KnownResourceProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled.\n */\nexport type ResourceProvisioningState = string;\n\n/** Partner's specific Properties */\nexport interface PartnerProperties {\n /** Pinecone Organization Name */\n displayName: string;\n}\n\nexport function partnerPropertiesSerializer(item: PartnerProperties): any {\n return { displayName: item[\"displayName\"] };\n}\n\nexport function partnerPropertiesDeserializer(item: any): PartnerProperties {\n return {\n displayName: item[\"displayName\"],\n };\n}\n\n/** Properties specific to Single Sign On Resource */\nexport interface SingleSignOnPropertiesV2 {\n /** Type of Single Sign-On mechanism being used */\n type: SingleSignOnType;\n /** State of the Single Sign On for the resource */\n state?: SingleSignOnStates;\n /** AAD enterprise application Id used to setup SSO */\n enterpriseAppId?: string;\n /** URL for SSO to be used by the partner to redirect the user to their system */\n url?: string;\n /** List of AAD domains fetched from Microsoft Graph for user. */\n aadDomains?: string[];\n}\n\nexport function singleSignOnPropertiesV2Serializer(item: SingleSignOnPropertiesV2): any {\n return {\n type: item[\"type\"],\n state: item[\"state\"],\n enterpriseAppId: item[\"enterpriseAppId\"],\n url: item[\"url\"],\n aadDomains: !item[\"aadDomains\"]\n ? item[\"aadDomains\"]\n : item[\"aadDomains\"].map((p: any) => {\n return p;\n }),\n };\n}\n\nexport function singleSignOnPropertiesV2Deserializer(item: any): SingleSignOnPropertiesV2 {\n return {\n type: item[\"type\"],\n state: item[\"state\"],\n enterpriseAppId: item[\"enterpriseAppId\"],\n url: item[\"url\"],\n aadDomains: !item[\"aadDomains\"]\n ? item[\"aadDomains\"]\n : item[\"aadDomains\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** Defines the type of Single Sign-On (SSO) mechanism being used */\nexport enum KnownSingleSignOnType {\n /** Security Assertion Markup Language (SAML) based Single Sign-On */\n Saml = \"Saml\",\n /** OpenID Connect based Single Sign-On. */\n OpenId = \"OpenId\",\n}\n\n/**\n * Defines the type of Single Sign-On (SSO) mechanism being used \\\n * {@link KnownSingleSignOnType} can be used interchangeably with SingleSignOnType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Saml**: Security Assertion Markup Language (SAML) based Single Sign-On \\\n * **OpenId**: OpenID Connect based Single Sign-On.\n */\nexport type SingleSignOnType = string;\n\n/** Various states of the SSO resource */\nexport enum KnownSingleSignOnStates {\n /** Initial state of the SSO resource */\n Initial = \"Initial\",\n /** State of the SSO resource when it is enabled */\n Enable = \"Enable\",\n /** State of the SSO resource when it is disabled */\n Disable = \"Disable\",\n}\n\n/**\n * Various states of the SSO resource \\\n * {@link KnownSingleSignOnStates} can be used interchangeably with SingleSignOnStates,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Initial**: Initial state of the SSO resource \\\n * **Enable**: State of the SSO resource when it is enabled \\\n * **Disable**: State of the SSO resource when it is disabled\n */\nexport type SingleSignOnStates = string;\n\n/** Managed service identity (system assigned and/or user assigned identities) */\nexport interface ManagedServiceIdentity {\n /** The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly principalId?: string;\n /** The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly tenantId?: string;\n /** The type of managed identity assigned to this resource. */\n type: ManagedServiceIdentityType;\n /** The identities assigned to this resource by the user. */\n userAssignedIdentities?: Record<string, UserAssignedIdentity | null>;\n}\n\nexport function managedServiceIdentitySerializer(item: ManagedServiceIdentity): any {\n return {\n type: item[\"type\"],\n userAssignedIdentities: item[\"userAssignedIdentities\"],\n };\n}\n\nexport function managedServiceIdentityDeserializer(item: any): ManagedServiceIdentity {\n return {\n principalId: item[\"principalId\"],\n tenantId: item[\"tenantId\"],\n type: item[\"type\"],\n userAssignedIdentities: item[\"userAssignedIdentities\"],\n };\n}\n\n/** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */\nexport enum KnownManagedServiceIdentityType {\n /** No managed identity. */\n None = \"None\",\n /** System assigned managed identity. */\n SystemAssigned = \"SystemAssigned\",\n /** User assigned managed identity. */\n UserAssigned = \"UserAssigned\",\n /** System and user assigned managed identity. */\n SystemAssignedUserAssigned = \"SystemAssigned,UserAssigned\",\n}\n\n/**\n * Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). \\\n * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **None**: No managed identity. \\\n * **SystemAssigned**: System assigned managed identity. \\\n * **UserAssigned**: User assigned managed identity. \\\n * **SystemAssigned,UserAssigned**: System and user assigned managed identity.\n */\nexport type ManagedServiceIdentityType = string;\n\n/** User assigned identity properties */\nexport interface UserAssignedIdentity {\n /** The principal ID of the assigned identity. */\n readonly principalId?: string;\n /** The client ID of the assigned identity. */\n readonly clientId?: string;\n}\n\nexport function userAssignedIdentitySerializer(item: UserAssignedIdentity): any {\n return item;\n}\n\nexport function userAssignedIdentityDeserializer(item: any): UserAssignedIdentity {\n return {\n principalId: item[\"principalId\"],\n clientId: item[\"clientId\"],\n };\n}\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n tags: item[\"tags\"],\n location: item[\"location\"],\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnowncreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** The type used for update operations of the Organization Resource. */\nexport interface OrganizationResourceUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The managed service identities assigned to this resource. */\n identity?: ManagedServiceIdentity;\n}\n\nexport function organizationResourceUpdateSerializer(item: OrganizationResourceUpdate): any {\n return {\n tags: item[\"tags\"],\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentitySerializer(item[\"identity\"]),\n };\n}\n\n/** The response of a OrganizationResource list operation. */\nexport interface _OrganizationResourceListResult {\n /** The OrganizationResource items on this page */\n value: OrganizationResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _organizationResourceListResultDeserializer(\n item: any,\n): _OrganizationResourceListResult {\n return {\n value: organizationResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function organizationResourceArraySerializer(result: Array<OrganizationResource>): any[] {\n return result.map((item) => {\n return organizationResourceSerializer(item);\n });\n}\n\nexport function organizationResourceArrayDeserializer(result: Array<OrganizationResource>): any[] {\n return result.map((item) => {\n return organizationResourceDeserializer(item);\n });\n}\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** 2024-10-22-preview version */\n V2024_10_22_Preview = \"2024-10-22-preview\",\n}\n"]}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAUlC,wEAWC;AAED,4EAiBC;AAgBD,4EAWC;AAED,gFAYC;AAYD,oEAKC;AAED,wEAMC;AA0CD,wDASC;AAED,4DASC;AAgBD,sDAQC;AAED,0DAQC;AA6BD,kEAEC;AAED,sEAIC;AAgBD,gFAYC;AAED,oFAYC;AAqDD,4EAKC;AAED,gFAOC;AAkCD,wEAEC;AAED,4EAKC;AAUD,8DAEC;AAED,kEAWC;AAcD,gDAEC;AAED,oDASC;AAkBD,wDAWC;AAgCD,8DAIC;AAgBD,0DAUC;AAED,oEAIC;AAED,oFAIC;AAUD,0EAKC;AAKD,oFAEC;AAUD,oFAOC;AAUD,kGAOC;AAED,kFAIC;AAED,sFAIC;AAUD,4EAKC;AAED,gEAIC;AAgBD,sDAQC;AAcD,oEAOC;AA9pBD,SAAgB,8BAA8B,CAAC,IAA0B;IACvE,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,gCAAgC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxD,QAAQ,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC;YACzB,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;YAClB,CAAC,CAAC,gCAAgC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACvD,CAAC;AACJ,CAAC;AAED,SAAgB,gCAAg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AAC,IAAS;IACpD,OAAO;QACL,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC;QAC5B,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;KACjC,CAAC;AACJ,CAAC;AAED,2IAA2I;AAC3I,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,sDAAsD;IACtD,4BAAa,CAAA;IACb,wDAAwD;IACxD,gCAAiB,CAAA;IACjB,gEAAgE;IAChE,yCAA0B,CAAA;AAC5B,CAAC,EAPW,WAAW,2BAAX,WAAW,QAOtB;AAaD,gHAAgH;AAChH,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,0CAA0C;IAC1C,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAWD,kCAAkC;AAClC,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,iCAAiC;IACjC,wDAAuC,CAAA;AACzC,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** Concrete tracked resource types can be created by aliasing this type using a specific property type. */\nexport interface OrganizationResource extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: OrganizationProperties;\n /** The managed service identities assigned to this resource. */\n identity?: ManagedServiceIdentity;\n}\n\nexport function organizationResourceSerializer(item: OrganizationResource): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : organizationPropertiesSerializer(item[\"properties\"]),\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentitySerializer(item[\"identity\"]),\n };\n}\n\nexport function organizationResourceDeserializer(item: any): OrganizationResource {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : organizationPropertiesDeserializer(item[\"properties\"]),\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentityDeserializer(item[\"identity\"]),\n };\n}\n\n/** Properties specific to Organization */\nexport interface OrganizationProperties {\n /** Marketplace details of the resource. */\n marketplace: MarketplaceDetails;\n /** Details of the user. */\n user: UserDetails;\n /** Provisioning state of the resource. */\n readonly provisioningState?: ResourceProvisioningState;\n /** partner properties */\n partnerProperties?: PartnerProperties;\n /** Single sign-on properties */\n singleSignOnProperties?: SingleSignOnPropertiesV2;\n}\n\nexport function organizationPropertiesSerializer(item: OrganizationProperties): any {\n return {\n marketplace: marketplaceDetailsSerializer(item[\"marketplace\"]),\n user: userDetailsSerializer(item[\"user\"]),\n partnerProperties: !item[\"partnerProperties\"]\n ? item[\"partnerProperties\"]\n : partnerPropertiesSerializer(item[\"partnerProperties\"]),\n singleSignOnProperties: !item[\"singleSignOnProperties\"]\n ? item[\"singleSignOnProperties\"]\n : singleSignOnPropertiesV2Serializer(item[\"singleSignOnProperties\"]),\n };\n}\n\nexport function organizationPropertiesDeserializer(item: any): OrganizationProperties {\n return {\n marketplace: marketplaceDetailsDeserializer(item[\"marketplace\"]),\n user: userDetailsDeserializer(item[\"user\"]),\n provisioningState: item[\"provisioningState\"],\n partnerProperties: !item[\"partnerProperties\"]\n ? item[\"partnerProperties\"]\n : partnerPropertiesDeserializer(item[\"partnerProperties\"]),\n singleSignOnProperties: !item[\"singleSignOnProperties\"]\n ? item[\"singleSignOnProperties\"]\n : singleSignOnPropertiesV2Deserializer(item[\"singleSignOnProperties\"]),\n };\n}\n\n/** Marketplace details for an organization */\nexport interface MarketplaceDetails {\n /** Azure subscription id for the the marketplace offer is purchased from */\n subscriptionId?: string;\n /** Marketplace subscription status */\n readonly subscriptionStatus?: MarketplaceSubscriptionStatus;\n /** Offer details for the marketplace that is selected by the user */\n offerDetails: OfferDetails;\n}\n\nexport function marketplaceDetailsSerializer(item: MarketplaceDetails): any {\n return {\n subscriptionId: item[\"subscriptionId\"],\n offerDetails: offerDetailsSerializer(item[\"offerDetails\"]),\n };\n}\n\nexport function marketplaceDetailsDeserializer(item: any): MarketplaceDetails {\n return {\n subscriptionId: item[\"subscriptionId\"],\n subscriptionStatus: item[\"subscriptionStatus\"],\n offerDetails: offerDetailsDeserializer(item[\"offerDetails\"]),\n };\n}\n\n/** Marketplace subscription status of a resource. */\nexport enum KnownMarketplaceSubscriptionStatus {\n /** Purchased but not yet activated */\n PendingFulfillmentStart = \"PendingFulfillmentStart\",\n /** Marketplace subscription is activated */\n Subscribed = \"Subscribed\",\n /** This state indicates that a customer's payment for the Marketplace service was not received */\n Suspended = \"Suspended\",\n /** Customer has cancelled the subscription */\n Unsubscribed = \"Unsubscribed\",\n}\n\n/**\n * Marketplace subscription status of a resource. \\\n * {@link KnownMarketplaceSubscriptionStatus} can be used interchangeably with MarketplaceSubscriptionStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **PendingFulfillmentStart**: Purchased but not yet activated \\\n * **Subscribed**: Marketplace subscription is activated \\\n * **Suspended**: This state indicates that a customer's payment for the Marketplace service was not received \\\n * **Unsubscribed**: Customer has cancelled the subscription\n */\nexport type MarketplaceSubscriptionStatus = string;\n\n/** Offer details for the marketplace that is selected by the user */\nexport interface OfferDetails {\n /** Publisher Id for the marketplace offer */\n publisherId: string;\n /** Offer Id for the marketplace offer */\n offerId: string;\n /** Plan Id for the marketplace offer */\n planId: string;\n /** Plan Name for the marketplace offer */\n planName?: string;\n /** Plan Display Name for the marketplace offer */\n termUnit?: string;\n /** Plan Display Name for the marketplace offer */\n termId?: string;\n}\n\nexport function offerDetailsSerializer(item: OfferDetails): any {\n return {\n publisherId: item[\"publisherId\"],\n offerId: item[\"offerId\"],\n planId: item[\"planId\"],\n planName: item[\"planName\"],\n termUnit: item[\"termUnit\"],\n termId: item[\"termId\"],\n };\n}\n\nexport function offerDetailsDeserializer(item: any): OfferDetails {\n return {\n publisherId: item[\"publisherId\"],\n offerId: item[\"offerId\"],\n planId: item[\"planId\"],\n planName: item[\"planName\"],\n termUnit: item[\"termUnit\"],\n termId: item[\"termId\"],\n };\n}\n\n/** User details for an organization */\nexport interface UserDetails {\n /** First name of the user */\n firstName?: string;\n /** Last name of the user */\n lastName?: string;\n /** Email address of the user */\n emailAddress?: string;\n /** User's principal name */\n upn?: string;\n /** User's phone number */\n phoneNumber?: string;\n}\n\nexport function userDetailsSerializer(item: UserDetails): any {\n return {\n firstName: item[\"firstName\"],\n lastName: item[\"lastName\"],\n emailAddress: item[\"emailAddress\"],\n upn: item[\"upn\"],\n phoneNumber: item[\"phoneNumber\"],\n };\n}\n\nexport function userDetailsDeserializer(item: any): UserDetails {\n return {\n firstName: item[\"firstName\"],\n lastName: item[\"lastName\"],\n emailAddress: item[\"emailAddress\"],\n upn: item[\"upn\"],\n phoneNumber: item[\"phoneNumber\"],\n };\n}\n\n/** The provisioning state of a resource type. */\nexport enum KnownResourceProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled.\n */\nexport type ResourceProvisioningState = string;\n\n/** Partner's specific Properties */\nexport interface PartnerProperties {\n /** Pinecone Organization Name */\n displayName: string;\n}\n\nexport function partnerPropertiesSerializer(item: PartnerProperties): any {\n return { displayName: item[\"displayName\"] };\n}\n\nexport function partnerPropertiesDeserializer(item: any): PartnerProperties {\n return {\n displayName: item[\"displayName\"],\n };\n}\n\n/** Properties specific to Single Sign On Resource */\nexport interface SingleSignOnPropertiesV2 {\n /** Type of Single Sign-On mechanism being used */\n type: SingleSignOnType;\n /** State of the Single Sign On for the resource */\n state?: SingleSignOnStates;\n /** AAD enterprise application Id used to setup SSO */\n enterpriseAppId?: string;\n /** URL for SSO to be used by the partner to redirect the user to their system */\n url?: string;\n /** List of AAD domains fetched from Microsoft Graph for user. */\n aadDomains?: string[];\n}\n\nexport function singleSignOnPropertiesV2Serializer(item: SingleSignOnPropertiesV2): any {\n return {\n type: item[\"type\"],\n state: item[\"state\"],\n enterpriseAppId: item[\"enterpriseAppId\"],\n url: item[\"url\"],\n aadDomains: !item[\"aadDomains\"]\n ? item[\"aadDomains\"]\n : item[\"aadDomains\"].map((p: any) => {\n return p;\n }),\n };\n}\n\nexport function singleSignOnPropertiesV2Deserializer(item: any): SingleSignOnPropertiesV2 {\n return {\n type: item[\"type\"],\n state: item[\"state\"],\n enterpriseAppId: item[\"enterpriseAppId\"],\n url: item[\"url\"],\n aadDomains: !item[\"aadDomains\"]\n ? item[\"aadDomains\"]\n : item[\"aadDomains\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** Defines the type of Single Sign-On (SSO) mechanism being used */\nexport enum KnownSingleSignOnType {\n /** Security Assertion Markup Language (SAML) based Single Sign-On */\n Saml = \"Saml\",\n /** OpenID Connect based Single Sign-On. */\n OpenId = \"OpenId\",\n}\n\n/**\n * Defines the type of Single Sign-On (SSO) mechanism being used \\\n * {@link KnownSingleSignOnType} can be used interchangeably with SingleSignOnType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Saml**: Security Assertion Markup Language (SAML) based Single Sign-On \\\n * **OpenId**: OpenID Connect based Single Sign-On.\n */\nexport type SingleSignOnType = string;\n\n/** Various states of the SSO resource */\nexport enum KnownSingleSignOnStates {\n /** Initial state of the SSO resource */\n Initial = \"Initial\",\n /** State of the SSO resource when it is enabled */\n Enable = \"Enable\",\n /** State of the SSO resource when it is disabled */\n Disable = \"Disable\",\n}\n\n/**\n * Various states of the SSO resource \\\n * {@link KnownSingleSignOnStates} can be used interchangeably with SingleSignOnStates,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Initial**: Initial state of the SSO resource \\\n * **Enable**: State of the SSO resource when it is enabled \\\n * **Disable**: State of the SSO resource when it is disabled\n */\nexport type SingleSignOnStates = string;\n\n/** Managed service identity (system assigned and/or user assigned identities) */\nexport interface ManagedServiceIdentity {\n /** The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly principalId?: string;\n /** The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly tenantId?: string;\n /** The type of managed identity assigned to this resource. */\n type: ManagedServiceIdentityType;\n /** The identities assigned to this resource by the user. */\n userAssignedIdentities?: Record<string, UserAssignedIdentity | null>;\n}\n\nexport function managedServiceIdentitySerializer(item: ManagedServiceIdentity): any {\n return {\n type: item[\"type\"],\n userAssignedIdentities: item[\"userAssignedIdentities\"],\n };\n}\n\nexport function managedServiceIdentityDeserializer(item: any): ManagedServiceIdentity {\n return {\n principalId: item[\"principalId\"],\n tenantId: item[\"tenantId\"],\n type: item[\"type\"],\n userAssignedIdentities: item[\"userAssignedIdentities\"],\n };\n}\n\n/** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */\nexport enum KnownManagedServiceIdentityType {\n /** No managed identity. */\n None = \"None\",\n /** System assigned managed identity. */\n SystemAssigned = \"SystemAssigned\",\n /** User assigned managed identity. */\n UserAssigned = \"UserAssigned\",\n /** System and user assigned managed identity. */\n SystemAssignedUserAssigned = \"SystemAssigned,UserAssigned\",\n}\n\n/**\n * Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). \\\n * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **None**: No managed identity. \\\n * **SystemAssigned**: System assigned managed identity. \\\n * **UserAssigned**: User assigned managed identity. \\\n * **SystemAssigned,UserAssigned**: System and user assigned managed identity.\n */\nexport type ManagedServiceIdentityType = string;\n\n/** User assigned identity properties */\nexport interface UserAssignedIdentity {\n /** The client ID of the assigned identity. */\n readonly clientId?: string;\n /** The principal ID of the assigned identity. */\n readonly principalId?: string;\n}\n\nexport function userAssignedIdentitySerializer(item: UserAssignedIdentity): any {\n return item;\n}\n\nexport function userAssignedIdentityDeserializer(item: any): UserAssignedIdentity {\n return {\n clientId: item[\"clientId\"],\n principalId: item[\"principalId\"],\n };\n}\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n tags: item[\"tags\"],\n location: item[\"location\"],\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnowncreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: Record<string, any>;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: !item[\"info\"] ? item[\"info\"] : _errorAdditionalInfoInfoDeserializer(item[\"info\"]),\n };\n}\n\n/** model interface _ErrorAdditionalInfoInfo */\nexport interface _ErrorAdditionalInfoInfo {}\n\nexport function _errorAdditionalInfoInfoDeserializer(item: any): _ErrorAdditionalInfoInfo {\n return item;\n}\n\n/** The type used for update operations of the Organization Resource. */\nexport interface OrganizationResourceUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The managed service identities assigned to this resource. */\n identity?: ManagedServiceIdentity;\n}\n\nexport function organizationResourceUpdateSerializer(item: OrganizationResourceUpdate): any {\n return {\n tags: item[\"tags\"],\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentitySerializer(item[\"identity\"]),\n };\n}\n\n/** The response of a OrganizationResource list operation. */\nexport interface _OrganizationResourceListResult {\n /** The OrganizationResource items on this page */\n value: OrganizationResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _organizationResourceListResultDeserializer(\n item: any,\n): _OrganizationResourceListResult {\n return {\n value: organizationResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function organizationResourceArraySerializer(result: Array<OrganizationResource>): any[] {\n return result.map((item) => {\n return organizationResourceSerializer(item);\n });\n}\n\nexport function organizationResourceArrayDeserializer(result: Array<OrganizationResource>): any[] {\n return result.map((item) => {\n return organizationResourceDeserializer(item);\n });\n}\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** 2024-10-22-preview version */\n V20241022Preview = \"2024-10-22-preview\",\n}\n"]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Licensed under the MIT License.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.restorePoller = restorePoller;
|
|
6
|
-
const
|
|
6
|
+
const operations_js_1 = require("./api/organizations/operations.js");
|
|
7
7
|
const pollingHelpers_js_1 = require("./static-helpers/pollingHelpers.js");
|
|
8
8
|
const core_lro_1 = require("@azure/core-lro");
|
|
9
9
|
/**
|
|
@@ -34,11 +34,11 @@ function restorePoller(client, serializedState, sourceOperation, options) {
|
|
|
34
34
|
}
|
|
35
35
|
const deserializeMap = {
|
|
36
36
|
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Pinecone.VectorDb/organizations/{organizationname}": {
|
|
37
|
-
deserializer:
|
|
37
|
+
deserializer: operations_js_1._$deleteDeserialize,
|
|
38
38
|
expectedStatuses: ["202", "204", "200"],
|
|
39
39
|
},
|
|
40
40
|
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Pinecone.VectorDb/organizations/{organizationname}": {
|
|
41
|
-
deserializer:
|
|
41
|
+
deserializer: operations_js_1._createOrUpdateDeserialize,
|
|
42
42
|
expectedStatuses: ["200", "201"],
|
|
43
43
|
},
|
|
44
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAiClC,sCAoCC;AAlED,
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAiClC,sCAoCC;AAlED,qEAAoG;AACpG,0EAA0E;AAG1E,8CAKyB;AAgBzB;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,MAAsB,EACtB,eAAuB,EACvB,eAAiF,EACjF,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AAC,CAAC,EAAE,CAAC;gBACjF,MAAM,KAAK,GAAG,cAAc,CAAC,CAAC,CAAE,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAC/C,GAAG,GAAG,MAAA,cAAc,CAAC,CAAC,CAAC,0CAAE,MAAM,CAAC;gBAClC,4DAA4D;gBAC5D,qDAAqD;gBACrD,eAAe;gBACf,6BAA6B;gBAC7B,MAAM,SAAS,GAAG,IAAI,MAAM,CAAC,GAAG,MAAA,cAAc,CAAC,CAAC,CAAC,0CAAE,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAC1E,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CACnB,CAAC;gBAEF,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { VectorDbClient } from \"./vectorDbClient.js\";\nimport { _$deleteDeserialize, _createOrUpdateDeserialize } from \"./api/organizations/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: VectorDbClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Pinecone.VectorDb/organizations/{organizationname}\":\n {\n deserializer: _$deleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Pinecone.VectorDb/organizations/{organizationname}\":\n {\n deserializer: _createOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"urlTemplate.d.ts","sourceRoot":"","sources":["../../../src/static-helpers/urlTemplate.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,kBAAkB;IAEjC,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AA+ID,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,MAAM,CA8BR"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.expandUrlTemplate = expandUrlTemplate;
|
|
6
|
+
// ---------------------
|
|
7
|
+
// helpers
|
|
8
|
+
// ---------------------
|
|
9
|
+
function encodeComponent(val, reserved, op) {
|
|
10
|
+
return (reserved !== null && reserved !== void 0 ? reserved : op === "+") || op === "#"
|
|
11
|
+
? encodeReservedComponent(val)
|
|
12
|
+
: encodeRFC3986URIComponent(val);
|
|
13
|
+
}
|
|
14
|
+
function encodeReservedComponent(str) {
|
|
15
|
+
return str
|
|
16
|
+
.split(/(%[0-9A-Fa-f]{2})/g)
|
|
17
|
+
.map((part) => (!/%[0-9A-Fa-f]/.test(part) ? encodeURI(part) : part))
|
|
18
|
+
.join("");
|
|
19
|
+
}
|
|
20
|
+
function encodeRFC3986URIComponent(str) {
|
|
21
|
+
return encodeURIComponent(str).replace(/[!'()*]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
22
|
+
}
|
|
23
|
+
function isDefined(val) {
|
|
24
|
+
return val !== undefined && val !== null;
|
|
25
|
+
}
|
|
26
|
+
function getNamedAndIfEmpty(op) {
|
|
27
|
+
return [!!op && [";", "?", "&"].includes(op), !!op && ["?", "&"].includes(op) ? "=" : ""];
|
|
28
|
+
}
|
|
29
|
+
function getFirstOrSep(op, isFirst = false) {
|
|
30
|
+
if (isFirst) {
|
|
31
|
+
return !op || op === "+" ? "" : op;
|
|
32
|
+
}
|
|
33
|
+
else if (!op || op === "+" || op === "#") {
|
|
34
|
+
return ",";
|
|
35
|
+
}
|
|
36
|
+
else if (op === "?") {
|
|
37
|
+
return "&";
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
return op;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function getExpandedValue(option) {
|
|
44
|
+
let isFirst = option.isFirst;
|
|
45
|
+
const { op, varName, varValue: value, reserved } = option;
|
|
46
|
+
const vals = [];
|
|
47
|
+
const [named, ifEmpty] = getNamedAndIfEmpty(op);
|
|
48
|
+
if (Array.isArray(value)) {
|
|
49
|
+
for (const val of value.filter(isDefined)) {
|
|
50
|
+
// prepare the following parts: separator, varName, value
|
|
51
|
+
vals.push(`${getFirstOrSep(op, isFirst)}`);
|
|
52
|
+
if (named && varName) {
|
|
53
|
+
vals.push(`${encodeURIComponent(varName)}`);
|
|
54
|
+
val === "" ? vals.push(ifEmpty) : vals.push("=");
|
|
55
|
+
}
|
|
56
|
+
vals.push(encodeComponent(val, reserved, op));
|
|
57
|
+
isFirst = false;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
else if (typeof value === "object") {
|
|
61
|
+
for (const key of Object.keys(value)) {
|
|
62
|
+
const val = value[key];
|
|
63
|
+
if (!isDefined(val)) {
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
// prepare the following parts: separator, key, value
|
|
67
|
+
vals.push(`${getFirstOrSep(op, isFirst)}`);
|
|
68
|
+
if (key) {
|
|
69
|
+
vals.push(`${encodeURIComponent(key)}`);
|
|
70
|
+
named && val === "" ? vals.push(ifEmpty) : vals.push("=");
|
|
71
|
+
}
|
|
72
|
+
vals.push(encodeComponent(val, reserved, op));
|
|
73
|
+
isFirst = false;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return vals.join("");
|
|
77
|
+
}
|
|
78
|
+
function getNonExpandedValue(option) {
|
|
79
|
+
const { op, varName, varValue: value, isFirst, reserved } = option;
|
|
80
|
+
const vals = [];
|
|
81
|
+
const first = getFirstOrSep(op, isFirst);
|
|
82
|
+
const [named, ifEmpty] = getNamedAndIfEmpty(op);
|
|
83
|
+
if (named && varName) {
|
|
84
|
+
vals.push(encodeComponent(varName, reserved, op));
|
|
85
|
+
if (value === "") {
|
|
86
|
+
if (!ifEmpty) {
|
|
87
|
+
vals.push(ifEmpty);
|
|
88
|
+
}
|
|
89
|
+
return !vals.join("") ? undefined : `${first}${vals.join("")}`;
|
|
90
|
+
}
|
|
91
|
+
vals.push("=");
|
|
92
|
+
}
|
|
93
|
+
const items = [];
|
|
94
|
+
if (Array.isArray(value)) {
|
|
95
|
+
for (const val of value.filter(isDefined)) {
|
|
96
|
+
items.push(encodeComponent(val, reserved, op));
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
else if (typeof value === "object") {
|
|
100
|
+
for (const key of Object.keys(value)) {
|
|
101
|
+
if (!isDefined(value[key])) {
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
items.push(encodeRFC3986URIComponent(key));
|
|
105
|
+
items.push(encodeComponent(value[key], reserved, op));
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
vals.push(items.join(","));
|
|
109
|
+
return !vals.join(",") ? undefined : `${first}${vals.join("")}`;
|
|
110
|
+
}
|
|
111
|
+
function getVarValue(option) {
|
|
112
|
+
const { op, varName, modifier, isFirst, reserved, varValue: value } = option;
|
|
113
|
+
if (!isDefined(value)) {
|
|
114
|
+
return undefined;
|
|
115
|
+
}
|
|
116
|
+
else if (["string", "number", "boolean"].includes(typeof value)) {
|
|
117
|
+
let val = value.toString();
|
|
118
|
+
const [named, ifEmpty] = getNamedAndIfEmpty(op);
|
|
119
|
+
const vals = [getFirstOrSep(op, isFirst)];
|
|
120
|
+
if (named && varName) {
|
|
121
|
+
vals.push(encodeRFC3986URIComponent(varName));
|
|
122
|
+
val === "" ? vals.push(ifEmpty) : vals.push("=");
|
|
123
|
+
}
|
|
124
|
+
if (modifier && modifier !== "*") {
|
|
125
|
+
val = val.substring(0, parseInt(modifier, 10));
|
|
126
|
+
}
|
|
127
|
+
vals.push(encodeComponent(val, reserved, op));
|
|
128
|
+
return vals.join("");
|
|
129
|
+
}
|
|
130
|
+
else if (modifier === "*") {
|
|
131
|
+
return getExpandedValue(option);
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
return getNonExpandedValue(option);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
// ---------------------------------------------------------------------------------------------------
|
|
138
|
+
// This is an implementation of RFC 6570 URI Template: https://datatracker.ietf.org/doc/html/rfc6570.
|
|
139
|
+
// ---------------------------------------------------------------------------------------------------
|
|
140
|
+
function expandUrlTemplate(template, context, option) {
|
|
141
|
+
return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, (_, expr, text) => {
|
|
142
|
+
if (!expr) {
|
|
143
|
+
return encodeReservedComponent(text);
|
|
144
|
+
}
|
|
145
|
+
let op;
|
|
146
|
+
if (["+", "#", ".", "/", ";", "?", "&"].includes(expr[0])) {
|
|
147
|
+
(op = expr[0]), (expr = expr.slice(1));
|
|
148
|
+
}
|
|
149
|
+
const varList = expr.split(/,/g);
|
|
150
|
+
const result = [];
|
|
151
|
+
for (const varSpec of varList) {
|
|
152
|
+
const varMatch = /([^:\*]*)(?::(\d+)|(\*))?/.exec(varSpec);
|
|
153
|
+
if (!varMatch || !varMatch[1]) {
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
156
|
+
const varValue = getVarValue({
|
|
157
|
+
isFirst: result.length === 0,
|
|
158
|
+
op,
|
|
159
|
+
varValue: context[varMatch[1]],
|
|
160
|
+
varName: varMatch[1],
|
|
161
|
+
modifier: varMatch[2] || varMatch[3],
|
|
162
|
+
reserved: option === null || option === void 0 ? void 0 : option.allowReserved,
|
|
163
|
+
});
|
|
164
|
+
if (varValue) {
|
|
165
|
+
result.push(varValue);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return result.join("");
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
//# sourceMappingURL=urlTemplate.js.map
|