@wix/data-resourceusage-service 1.0.3 → 1.0.5
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/data-resourceusage-service",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"type-bundles"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@wix/data-resourceusage-service_data": "1.0.
|
|
21
|
+
"@wix/data-resourceusage-service_data": "1.0.5"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"glob": "^10.4.1",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "tsc -b tsconfig.json tsconfig.esm.json && npm run build:dts-bundles",
|
|
31
|
-
"build:dts-bundles": "test -f config/rollup-config.js && rollup --config config/rollup-config.js || echo 'Warning: config/rollup-config.js not found!'",
|
|
31
|
+
"build:dts-bundles": "test -f config/rollup-config.js && NODE_OPTIONS=--max-old-space-size=8192 rollup --config config/rollup-config.js || echo 'Warning: config/rollup-config.js not found!'",
|
|
32
32
|
"test": ":"
|
|
33
33
|
},
|
|
34
34
|
"wix": {
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"fqdn": ""
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
-
"falconPackageHash": "
|
|
45
|
+
"falconPackageHash": "ecdb898e3952851b2aff652bde92f1b78574c37c46dbf594b88cdd88"
|
|
46
46
|
}
|
|
@@ -381,6 +381,7 @@ interface GetResourceUsageOptions {
|
|
|
381
381
|
consistentRead?: boolean;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
384
385
|
interface HttpClient {
|
|
385
386
|
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
386
387
|
fetchWithAuth: typeof fetch;
|
|
@@ -405,6 +406,7 @@ type APIMetadata = {
|
|
|
405
406
|
entityFqdn?: string;
|
|
406
407
|
packageName?: string;
|
|
407
408
|
};
|
|
409
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
408
410
|
|
|
409
411
|
declare global {
|
|
410
412
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -413,10 +415,9 @@ declare global {
|
|
|
413
415
|
}
|
|
414
416
|
}
|
|
415
417
|
|
|
416
|
-
declare
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
declare function getResourceUsage(httpClient: HttpClient): (options?: GetResourceUsageOptions) => Promise<GetResourceUsageResponse & GetResourceUsageResponseNonNullableFields>;
|
|
418
|
+
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
419
|
+
|
|
420
|
+
declare const getResourceUsage: ReturnType<typeof createRESTModule<typeof publicGetResourceUsage>>;
|
|
420
421
|
|
|
421
422
|
type index_d_ActionEvent = ActionEvent;
|
|
422
423
|
type index_d_BulkUpdateUsagesRequest = BulkUpdateUsagesRequest;
|
|
@@ -459,10 +460,9 @@ type index_d_Type = Type;
|
|
|
459
460
|
declare const index_d_Type: typeof Type;
|
|
460
461
|
type index_d_WebhookIdentityType = WebhookIdentityType;
|
|
461
462
|
declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
|
|
462
|
-
declare const index_d___metadata: typeof __metadata;
|
|
463
463
|
declare const index_d_getResourceUsage: typeof getResourceUsage;
|
|
464
464
|
declare namespace index_d {
|
|
465
|
-
export { type index_d_ActionEvent as ActionEvent, type index_d_BulkUpdateUsagesRequest as BulkUpdateUsagesRequest, type index_d_BulkUpdateUsagesResponse as BulkUpdateUsagesResponse, type index_d_ChangesLost as ChangesLost, index_d_CollectionType as CollectionType, type index_d_DataChangeEvent as DataChangeEvent, type index_d_DataChangeEventEventOneOf as DataChangeEventEventOneOf, type index_d_DataChanged as DataChanged, type index_d_DataChangedChangeOneOf as DataChangedChangeOneOf, type index_d_DataCollectionResourceUsage as DataCollectionResourceUsage, type index_d_DataCollectionResourceUsageUpdate as DataCollectionResourceUsageUpdate, index_d_DataStore as DataStore, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_GetResourceUsageOptions as GetResourceUsageOptions, type index_d_GetResourceUsageRequest as GetResourceUsageRequest, type index_d_GetResourceUsageResponse as GetResourceUsageResponse, type index_d_GetResourceUsageResponseNonNullableFields as GetResourceUsageResponseNonNullableFields, type index_d_GetStoredUsageRequest as GetStoredUsageRequest, type index_d_GetStoredUsageResponse as GetStoredUsageResponse, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_Initiator as Initiator, type index_d_InstanceUsageUpdate as InstanceUsageUpdate, type index_d_MessageEnvelope as MessageEnvelope, type index_d_ReferenceChanged as ReferenceChanged, type index_d_ResourceUsage as ResourceUsage, index_d_Segment as Segment, type index_d_SegmentChanged as SegmentChanged, type index_d_SegmentMigrationStarted as SegmentMigrationStarted, index_d_Type as Type, index_d_WebhookIdentityType as WebhookIdentityType,
|
|
465
|
+
export { type index_d_ActionEvent as ActionEvent, type index_d_BulkUpdateUsagesRequest as BulkUpdateUsagesRequest, type index_d_BulkUpdateUsagesResponse as BulkUpdateUsagesResponse, type index_d_ChangesLost as ChangesLost, index_d_CollectionType as CollectionType, type index_d_DataChangeEvent as DataChangeEvent, type index_d_DataChangeEventEventOneOf as DataChangeEventEventOneOf, type index_d_DataChanged as DataChanged, type index_d_DataChangedChangeOneOf as DataChangedChangeOneOf, type index_d_DataCollectionResourceUsage as DataCollectionResourceUsage, type index_d_DataCollectionResourceUsageUpdate as DataCollectionResourceUsageUpdate, index_d_DataStore as DataStore, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_GetResourceUsageOptions as GetResourceUsageOptions, type index_d_GetResourceUsageRequest as GetResourceUsageRequest, type index_d_GetResourceUsageResponse as GetResourceUsageResponse, type index_d_GetResourceUsageResponseNonNullableFields as GetResourceUsageResponseNonNullableFields, type index_d_GetStoredUsageRequest as GetStoredUsageRequest, type index_d_GetStoredUsageResponse as GetStoredUsageResponse, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_Initiator as Initiator, type index_d_InstanceUsageUpdate as InstanceUsageUpdate, type index_d_MessageEnvelope as MessageEnvelope, type index_d_ReferenceChanged as ReferenceChanged, type index_d_ResourceUsage as ResourceUsage, index_d_Segment as Segment, type index_d_SegmentChanged as SegmentChanged, type index_d_SegmentMigrationStarted as SegmentMigrationStarted, index_d_Type as Type, index_d_WebhookIdentityType as WebhookIdentityType, index_d_getResourceUsage as getResourceUsage };
|
|
466
466
|
}
|
|
467
467
|
|
|
468
468
|
export { index_d as data };
|