@wix/data-resourceusage-service 1.0.14 → 1.0.16

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.
@@ -1,187 +0,0 @@
1
- /** ResourceUsage describes site-wide resource limits and usage */
2
- interface ResourceUsage$1 {
3
- /**
4
- * Used storage sum of Sandbox and Live environments, bytes
5
- * Replaced by live_used_storage_in_bytes
6
- * @deprecated
7
- * @replacedBy live_used_storage_in_bytes + sandbox_used_storage_in_bytes
8
- */
9
- totalUsedStorageInBytes?: string | null;
10
- /** Max storage, bytes */
11
- totalUsedStorageInBytesLimit?: string | null;
12
- /** Total number of native collections created */
13
- collectionCount?: number | null;
14
- /** Max number of native collections allowed */
15
- collectionCountLimit?: number | null;
16
- /**
17
- * Total number of items in native collections sum of Sandbox and Live environments
18
- * Replaced by live_item_count
19
- * @deprecated
20
- * @replacedBy live_item_count + sandbox_item_count
21
- */
22
- totalItemCount?: string | null;
23
- /** Max number of items in native collections */
24
- totalItemCountLimit?: string | null;
25
- /** Resource usages per data collection */
26
- dataCollectionUsages?: DataCollectionResourceUsage$1[];
27
- /** Used storage in Live environment */
28
- liveUsedStorageInBytes?: string | null;
29
- /** Number of items in native collections in Live environment */
30
- liveItemCount?: string | null;
31
- /** Used storage in Sandbox environment */
32
- sandboxUsedStorageInBytes?: string | null;
33
- /** Number of items in native collections in Sandbox environment */
34
- sandboxItemCount?: string | null;
35
- }
36
- interface DataCollectionResourceUsage$1 {
37
- /** Data Collection ID */
38
- dataCollectionId?: string;
39
- /** Data Collection display name */
40
- displayName?: string | null;
41
- /** Data Collection item count in the live environment */
42
- liveItemCount?: string;
43
- /** Data Collection item count in the sandbox environment, none if disabled */
44
- sandboxItemCount?: string | null;
45
- /** Data Collection used storage in bytes in the live environment */
46
- liveUsedStorageInBytes?: string;
47
- /** Data Collection used storage in bytes in the sandbox environment, none if disabled */
48
- sandboxUsedStorageInBytes?: string | null;
49
- /** Type of data collection, currently only NATIVE are returned in this API */
50
- dataCollectionType?: CollectionType$1;
51
- }
52
- declare enum CollectionType$1 {
53
- /** User-created collection. */
54
- NATIVE = "NATIVE",
55
- /** [Collection](https://support.wix.com/en/article/velo-working-with-wix-app-collections-and-code#what-are-wix-app-collections) created by a Wix app when it is installed. This type of collection can be modified dynamically by that app (for example, Wix Forms). */
56
- WIX_APP = "WIX_APP",
57
- /** Collection created by a Wix Blocks app. */
58
- BLOCKS_APP = "BLOCKS_APP",
59
- /** Collection located in externally connected storage. */
60
- EXTERNAL = "EXTERNAL"
61
- }
62
- interface GetResourceUsageRequest$1 {
63
- /** ResourceUsage fields to return, if empty all are returned */
64
- fields?: string[];
65
- /** If true, operation queries collections for up-to-date values (rather than using cached values) */
66
- consistentRead?: boolean;
67
- }
68
- interface GetResourceUsageResponse$1 {
69
- /** The retrieved ResourceUsage */
70
- resourceUsage?: ResourceUsage$1;
71
- }
72
- interface DataCollectionResourceUsageNonNullableFields$1 {
73
- dataCollectionId: string;
74
- liveItemCount: string;
75
- liveUsedStorageInBytes: string;
76
- dataCollectionType: CollectionType$1;
77
- }
78
- interface ResourceUsageNonNullableFields$1 {
79
- dataCollectionUsages: DataCollectionResourceUsageNonNullableFields$1[];
80
- }
81
- interface GetResourceUsageResponseNonNullableFields$1 {
82
- resourceUsage?: ResourceUsageNonNullableFields$1;
83
- }
84
-
85
- /** ResourceUsage describes site-wide resource limits and usage */
86
- interface ResourceUsage {
87
- /**
88
- * Used storage sum of Sandbox and Live environments, bytes
89
- * Replaced by live_used_storage_in_bytes
90
- * @deprecated
91
- * @replacedBy live_used_storage_in_bytes + sandbox_used_storage_in_bytes
92
- */
93
- totalUsedStorageInBytes?: string | null;
94
- /** Max storage, bytes */
95
- totalUsedStorageInBytesLimit?: string | null;
96
- /** Total number of native collections created */
97
- collectionCount?: number | null;
98
- /** Max number of native collections allowed */
99
- collectionCountLimit?: number | null;
100
- /**
101
- * Total number of items in native collections sum of Sandbox and Live environments
102
- * Replaced by live_item_count
103
- * @deprecated
104
- * @replacedBy live_item_count + sandbox_item_count
105
- */
106
- totalItemCount?: string | null;
107
- /** Max number of items in native collections */
108
- totalItemCountLimit?: string | null;
109
- /** Resource usages per data collection */
110
- dataCollectionUsages?: DataCollectionResourceUsage[];
111
- /** Used storage in Live environment */
112
- liveUsedStorageInBytes?: string | null;
113
- /** Number of items in native collections in Live environment */
114
- liveItemCount?: string | null;
115
- /** Used storage in Sandbox environment */
116
- sandboxUsedStorageInBytes?: string | null;
117
- /** Number of items in native collections in Sandbox environment */
118
- sandboxItemCount?: string | null;
119
- }
120
- interface DataCollectionResourceUsage {
121
- /** Data Collection ID */
122
- dataCollectionId?: string;
123
- /** Data Collection display name */
124
- displayName?: string | null;
125
- /** Data Collection item count in the live environment */
126
- liveItemCount?: string;
127
- /** Data Collection item count in the sandbox environment, none if disabled */
128
- sandboxItemCount?: string | null;
129
- /** Data Collection used storage in bytes in the live environment */
130
- liveUsedStorageInBytes?: string;
131
- /** Data Collection used storage in bytes in the sandbox environment, none if disabled */
132
- sandboxUsedStorageInBytes?: string | null;
133
- /** Type of data collection, currently only NATIVE are returned in this API */
134
- dataCollectionType?: CollectionType;
135
- }
136
- declare enum CollectionType {
137
- /** User-created collection. */
138
- NATIVE = "NATIVE",
139
- /** [Collection](https://support.wix.com/en/article/velo-working-with-wix-app-collections-and-code#what-are-wix-app-collections) created by a Wix app when it is installed. This type of collection can be modified dynamically by that app (for example, Wix Forms). */
140
- WIX_APP = "WIX_APP",
141
- /** Collection created by a Wix Blocks app. */
142
- BLOCKS_APP = "BLOCKS_APP",
143
- /** Collection located in externally connected storage. */
144
- EXTERNAL = "EXTERNAL"
145
- }
146
- interface GetResourceUsageRequest {
147
- /** ResourceUsage fields to return, if empty all are returned */
148
- fields?: string[];
149
- /** If true, operation queries collections for up-to-date values (rather than using cached values) */
150
- consistentRead?: boolean;
151
- }
152
- interface GetResourceUsageResponse {
153
- /** The retrieved ResourceUsage */
154
- resourceUsage?: ResourceUsage;
155
- }
156
- interface DataCollectionResourceUsageNonNullableFields {
157
- dataCollectionId: string;
158
- liveItemCount: string;
159
- liveUsedStorageInBytes: string;
160
- dataCollectionType: CollectionType;
161
- }
162
- interface ResourceUsageNonNullableFields {
163
- dataCollectionUsages: DataCollectionResourceUsageNonNullableFields[];
164
- }
165
- interface GetResourceUsageResponseNonNullableFields {
166
- resourceUsage?: ResourceUsageNonNullableFields;
167
- }
168
-
169
- type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
170
- getUrl: (context: any) => string;
171
- httpMethod: K;
172
- path: string;
173
- pathParams: M;
174
- __requestType: T;
175
- __originalRequestType: S;
176
- __responseType: Q;
177
- __originalResponseType: R;
178
- };
179
- declare function getResourceUsage(): __PublicMethodMetaInfo<'GET', {}, GetResourceUsageRequest, GetResourceUsageRequest$1, GetResourceUsageResponse & GetResourceUsageResponseNonNullableFields, GetResourceUsageResponse$1 & GetResourceUsageResponseNonNullableFields$1>;
180
-
181
- type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
182
- declare const meta_getResourceUsage: typeof getResourceUsage;
183
- declare namespace meta {
184
- export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_getResourceUsage as getResourceUsage };
185
- }
186
-
187
- export { meta as data };