@wix/auto_sdk_gbp_media-uploads 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.
Files changed (38) hide show
  1. package/build/cjs/index.d.ts +3 -3
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +3 -3
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/es/index.d.mts +3 -3
  6. package/build/es/index.mjs.map +1 -1
  7. package/build/es/index.typings.d.mts +3 -3
  8. package/build/es/index.typings.mjs.map +1 -1
  9. package/build/internal/cjs/index.d.ts +3 -3
  10. package/build/internal/cjs/index.typings.d.ts +3 -3
  11. package/build/internal/es/index.d.mts +3 -3
  12. package/build/internal/es/index.typings.d.mts +3 -3
  13. package/package.json +4 -11
  14. package/build/cjs/schemas.d.ts +0 -195
  15. package/build/cjs/schemas.js +0 -307
  16. package/build/cjs/schemas.js.map +0 -1
  17. package/build/es/schemas.d.mts +0 -195
  18. package/build/es/schemas.mjs +0 -265
  19. package/build/es/schemas.mjs.map +0 -1
  20. package/build/internal/cjs/index.js +0 -440
  21. package/build/internal/cjs/index.js.map +0 -1
  22. package/build/internal/cjs/index.typings.js +0 -410
  23. package/build/internal/cjs/index.typings.js.map +0 -1
  24. package/build/internal/cjs/meta.js +0 -383
  25. package/build/internal/cjs/meta.js.map +0 -1
  26. package/build/internal/cjs/schemas.d.ts +0 -195
  27. package/build/internal/cjs/schemas.js +0 -307
  28. package/build/internal/cjs/schemas.js.map +0 -1
  29. package/build/internal/es/index.mjs +0 -409
  30. package/build/internal/es/index.mjs.map +0 -1
  31. package/build/internal/es/index.typings.mjs +0 -379
  32. package/build/internal/es/index.typings.mjs.map +0 -1
  33. package/build/internal/es/meta.mjs +0 -349
  34. package/build/internal/es/meta.mjs.map +0 -1
  35. package/build/internal/es/schemas.d.mts +0 -195
  36. package/build/internal/es/schemas.mjs +0 -265
  37. package/build/internal/es/schemas.mjs.map +0 -1
  38. package/schemas/package.json +0 -3
@@ -54,7 +54,7 @@ interface BulkCreateMediaUploadsSignature {
54
54
  *
55
55
  * Up to 52 items: 50 gallery photos plus a logo and a cover.
56
56
  */
57
- (mediaUploads: MediaUpload[], options?: BulkCreateMediaUploadsOptions): Promise<NonNullablePaths<BulkCreateMediaUploadsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item._id` | `results.${number}.item.locationId` | `results.${number}.item.batchId` | `results.${number}.item.slotKey` | `results.${number}.item.sourceUrl` | `results.${number}.item.category` | `results.${number}.item.format` | `results.${number}.item.operation` | `results.${number}.item.sequence` | `results.${number}.item.state` | `results.${number}.item.attempts` | `results.${number}.item.mediaKey` | `results.${number}.item.failure.reason` | `results.${number}.item.revision` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
57
+ (mediaUploads: MediaUpload[], options?: BulkCreateMediaUploadsOptions): Promise<NonNullablePaths<BulkCreateMediaUploadsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item._id` | `results.${number}.item.locationId` | `results.${number}.item.batchId` | `results.${number}.item.slotKey` | `results.${number}.item.sourceUrl` | `results.${number}.item.category` | `results.${number}.item.format` | `results.${number}.item.operation` | `results.${number}.item.sequence` | `results.${number}.item.state` | `results.${number}.item.attempts` | `results.${number}.item.mediaKey` | `results.${number}.item.failure.reason` | `results.${number}.item.revision` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 4> & {
58
58
  __applicationErrorsType?: BulkCreateMediaUploadsApplicationErrors;
59
59
  }>;
60
60
  }
@@ -100,7 +100,7 @@ interface ListMediaUploadsSignature {
100
100
  * or fails with `FAILED_PRECONDITION`.
101
101
  * @param - ID of the location. This is Google's location identifier.
102
102
  */
103
- (locationId: string): Promise<NonNullablePaths<ListMediaUploadsResponse, `mediaUploads` | `mediaUploads.${number}._id` | `mediaUploads.${number}.locationId` | `mediaUploads.${number}.batchId` | `mediaUploads.${number}.slotKey` | `mediaUploads.${number}.sourceUrl` | `mediaUploads.${number}.category` | `mediaUploads.${number}.format` | `mediaUploads.${number}.operation` | `mediaUploads.${number}.sequence` | `mediaUploads.${number}.state` | `mediaUploads.${number}.attempts` | `mediaUploads.${number}.mediaKey` | `mediaUploads.${number}.failure.reason` | `mediaUploads.${number}.revision`, 5> & {
103
+ (locationId: string): Promise<NonNullablePaths<ListMediaUploadsResponse, `mediaUploads` | `mediaUploads.${number}._id` | `mediaUploads.${number}.locationId` | `mediaUploads.${number}.batchId` | `mediaUploads.${number}.slotKey` | `mediaUploads.${number}.sourceUrl` | `mediaUploads.${number}.category` | `mediaUploads.${number}.format` | `mediaUploads.${number}.operation` | `mediaUploads.${number}.sequence` | `mediaUploads.${number}.state` | `mediaUploads.${number}.attempts` | `mediaUploads.${number}.mediaKey` | `mediaUploads.${number}.failure.reason` | `mediaUploads.${number}.revision`, 3> & {
104
104
  __applicationErrorsType?: ListMediaUploadsApplicationErrors;
105
105
  }>;
106
106
  }
@@ -116,7 +116,7 @@ interface DismissMediaUploadFailuresSignature {
116
116
  * `dismissedCount` reports how many were cleared.
117
117
  * @param - ID of the location. This is Google's location identifier.
118
118
  */
119
- (locationId: string): Promise<NonNullablePaths<DismissMediaUploadFailuresResponse, `dismissedCount`, 2>>;
119
+ (locationId: string): Promise<NonNullablePaths<DismissMediaUploadFailuresResponse, `dismissedCount`, 0>>;
120
120
  }
121
121
 
122
122
  declare const bulkCreateMediaUploads: MaybeContext<BuildRESTFunction<typeof bulkCreateMediaUploads$1> & typeof bulkCreateMediaUploads$1>;
@@ -401,7 +401,7 @@ type ListMediaUploadsApplicationErrors = {
401
401
  * @applicableIdentity APP
402
402
  * @fqn wix.gbp.location.v1.MediaUploadService.BulkCreateMediaUploads
403
403
  */
404
- declare function bulkCreateMediaUploads(mediaUploads: MediaUpload[], options?: BulkCreateMediaUploadsOptions): Promise<NonNullablePaths<BulkCreateMediaUploadsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item._id` | `results.${number}.item.locationId` | `results.${number}.item.batchId` | `results.${number}.item.slotKey` | `results.${number}.item.sourceUrl` | `results.${number}.item.category` | `results.${number}.item.format` | `results.${number}.item.operation` | `results.${number}.item.sequence` | `results.${number}.item.state` | `results.${number}.item.attempts` | `results.${number}.item.mediaKey` | `results.${number}.item.failure.reason` | `results.${number}.item.revision` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
404
+ declare function bulkCreateMediaUploads(mediaUploads: MediaUpload[], options?: BulkCreateMediaUploadsOptions): Promise<NonNullablePaths<BulkCreateMediaUploadsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item._id` | `results.${number}.item.locationId` | `results.${number}.item.batchId` | `results.${number}.item.slotKey` | `results.${number}.item.sourceUrl` | `results.${number}.item.category` | `results.${number}.item.format` | `results.${number}.item.operation` | `results.${number}.item.sequence` | `results.${number}.item.state` | `results.${number}.item.attempts` | `results.${number}.item.mediaKey` | `results.${number}.item.failure.reason` | `results.${number}.item.revision` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 4> & {
405
405
  __applicationErrorsType?: BulkCreateMediaUploadsApplicationErrors;
406
406
  }>;
407
407
  interface BulkCreateMediaUploadsOptions {
@@ -454,7 +454,7 @@ interface BulkCreateMediaUploadsOptions {
454
454
  * @applicableIdentity APP
455
455
  * @fqn wix.gbp.location.v1.MediaUploadService.ListMediaUploads
456
456
  */
457
- declare function listMediaUploads(locationId: string): Promise<NonNullablePaths<ListMediaUploadsResponse, `mediaUploads` | `mediaUploads.${number}._id` | `mediaUploads.${number}.locationId` | `mediaUploads.${number}.batchId` | `mediaUploads.${number}.slotKey` | `mediaUploads.${number}.sourceUrl` | `mediaUploads.${number}.category` | `mediaUploads.${number}.format` | `mediaUploads.${number}.operation` | `mediaUploads.${number}.sequence` | `mediaUploads.${number}.state` | `mediaUploads.${number}.attempts` | `mediaUploads.${number}.mediaKey` | `mediaUploads.${number}.failure.reason` | `mediaUploads.${number}.revision`, 5> & {
457
+ declare function listMediaUploads(locationId: string): Promise<NonNullablePaths<ListMediaUploadsResponse, `mediaUploads` | `mediaUploads.${number}._id` | `mediaUploads.${number}.locationId` | `mediaUploads.${number}.batchId` | `mediaUploads.${number}.slotKey` | `mediaUploads.${number}.sourceUrl` | `mediaUploads.${number}.category` | `mediaUploads.${number}.format` | `mediaUploads.${number}.operation` | `mediaUploads.${number}.sequence` | `mediaUploads.${number}.state` | `mediaUploads.${number}.attempts` | `mediaUploads.${number}.mediaKey` | `mediaUploads.${number}.failure.reason` | `mediaUploads.${number}.revision`, 3> & {
458
458
  __applicationErrorsType?: ListMediaUploadsApplicationErrors;
459
459
  }>;
460
460
  /**
@@ -473,6 +473,6 @@ declare function listMediaUploads(locationId: string): Promise<NonNullablePaths<
473
473
  * @applicableIdentity APP
474
474
  * @fqn wix.gbp.location.v1.MediaUploadService.DismissMediaUploadFailures
475
475
  */
476
- declare function dismissMediaUploadFailures(locationId: string): Promise<NonNullablePaths<DismissMediaUploadFailuresResponse, `dismissedCount`, 2>>;
476
+ declare function dismissMediaUploadFailures(locationId: string): Promise<NonNullablePaths<DismissMediaUploadFailuresResponse, `dismissedCount`, 0>>;
477
477
 
478
478
  export { type ApplicationError, type BulkActionMetadata, type BulkCreateMediaUploadResult, type BulkCreateMediaUploadsApplicationErrors, type BulkCreateMediaUploadsOptions, type BulkCreateMediaUploadsRequest, type BulkCreateMediaUploadsResponse, type DismissMediaUploadFailuresRequest, type DismissMediaUploadFailuresResponse, type ItemMetadata, type ListMediaUploadsApplicationErrors, type ListMediaUploadsRequest, type ListMediaUploadsResponse, MediaCategory, type MediaCategoryWithLiterals, MediaFormat, type MediaFormatWithLiterals, type MediaUpload, type MediaUploadFailure, MediaUploadFailureReason, type MediaUploadFailureReasonWithLiterals, MediaUploadOperation, type MediaUploadOperationWithLiterals, MediaUploadState, type MediaUploadStateWithLiterals, bulkCreateMediaUploads, dismissMediaUploadFailures, listMediaUploads };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_gbp_media-uploads",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -21,23 +21,16 @@
21
21
  "import": "./build/es/meta.mjs",
22
22
  "require": "./build/cjs/meta.js",
23
23
  "types": "./build/es/meta.d.mts"
24
- },
25
- "./schemas": {
26
- "import": "./build/es/schemas.mjs",
27
- "require": "./build/cjs/schemas.js",
28
- "types": "./build/es/schemas.d.mts"
29
24
  }
30
25
  },
31
26
  "files": [
32
27
  "build",
33
28
  "meta",
34
- "service-plugins",
35
- "schemas"
29
+ "service-plugins"
36
30
  ],
37
31
  "dependencies": {
38
32
  "@wix/sdk-runtime": "^1.0.24",
39
- "@wix/sdk-types": "^1.17.11",
40
- "zod": "^4.3.6"
33
+ "@wix/sdk-types": "^1.17.11"
41
34
  },
42
35
  "devDependencies": {
43
36
  "tsup": "^8.4.0",
@@ -57,5 +50,5 @@
57
50
  "fqdn": "wix.gbp.location.v1.media_upload"
58
51
  }
59
52
  },
60
- "falconPackageHash": "2291d55a6c35d1e11ebd41b5dc2e0375a0f758c8eff09b2435069450"
53
+ "falconPackageHash": "720448c28e48f7c99cf5e40b805188dcbbb74443717bad6fdf51a820"
61
54
  }
@@ -1,195 +0,0 @@
1
- import * as z from 'zod';
2
-
3
- declare const BulkCreateMediaUploadsRequest: z.ZodObject<{
4
- mediaUploads: z.ZodArray<z.ZodObject<{
5
- _id: z.ZodOptional<z.ZodString>;
6
- locationId: z.ZodOptional<z.ZodString>;
7
- batchId: z.ZodOptional<z.ZodString>;
8
- slotKey: z.ZodOptional<z.ZodString>;
9
- sourceUrl: z.ZodOptional<z.ZodString>;
10
- category: z.ZodOptional<z.ZodEnum<{
11
- COVER: "COVER";
12
- PROFILE: "PROFILE";
13
- LOGO: "LOGO";
14
- EXTERIOR: "EXTERIOR";
15
- INTERIOR: "INTERIOR";
16
- PRODUCT: "PRODUCT";
17
- AT_WORK: "AT_WORK";
18
- FOOD_AND_DRINK: "FOOD_AND_DRINK";
19
- MENU: "MENU";
20
- COMMON_AREA: "COMMON_AREA";
21
- ROOMS: "ROOMS";
22
- TEAMS: "TEAMS";
23
- ADDITIONAL: "ADDITIONAL";
24
- }>>;
25
- format: z.ZodOptional<z.ZodEnum<{
26
- PHOTO: "PHOTO";
27
- VIDEO: "VIDEO";
28
- }>>;
29
- operation: z.ZodOptional<z.ZodEnum<{
30
- DELETE: "DELETE";
31
- CREATE: "CREATE";
32
- }>>;
33
- sequence: z.ZodOptional<z.ZodNumber>;
34
- state: z.ZodOptional<z.ZodEnum<{
35
- PENDING: "PENDING";
36
- UPLOADING: "UPLOADING";
37
- FAILED: "FAILED";
38
- }>>;
39
- attempts: z.ZodOptional<z.ZodNumber>;
40
- mediaKey: z.ZodOptional<z.ZodString>;
41
- failure: z.ZodOptional<z.ZodObject<{
42
- reason: z.ZodOptional<z.ZodEnum<{
43
- IMAGE_TOO_SMALL: "IMAGE_TOO_SMALL";
44
- ASPECT_RATIO_REJECTED: "ASPECT_RATIO_REJECTED";
45
- FORMAT_UNSUPPORTED: "FORMAT_UNSUPPORTED";
46
- SOURCE_UNREACHABLE: "SOURCE_UNREACHABLE";
47
- PERMISSION_REVOKED: "PERMISSION_REVOKED";
48
- RATE_LIMIT_EXHAUSTED: "RATE_LIMIT_EXHAUSTED";
49
- UPLOAD_UNVERIFIED: "UPLOAD_UNVERIFIED";
50
- }>>;
51
- }, z.core.$strip>>;
52
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
53
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
54
- revision: z.ZodOptional<z.ZodString>;
55
- }, z.core.$strip>>;
56
- options: z.ZodOptional<z.ZodObject<{
57
- returnEntity: z.ZodOptional<z.ZodBoolean>;
58
- }, z.core.$strip>>;
59
- }, z.core.$strip>;
60
- declare const BulkCreateMediaUploadsResponse: z.ZodObject<{
61
- results: z.ZodOptional<z.ZodArray<z.ZodObject<{
62
- itemMetadata: z.ZodOptional<z.ZodObject<{
63
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
64
- originalIndex: z.ZodOptional<z.ZodNumber>;
65
- success: z.ZodOptional<z.ZodBoolean>;
66
- error: z.ZodOptional<z.ZodObject<{
67
- code: z.ZodOptional<z.ZodString>;
68
- description: z.ZodOptional<z.ZodString>;
69
- data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
70
- }, z.core.$strip>>;
71
- }, z.core.$strip>>;
72
- item: z.ZodOptional<z.ZodObject<{
73
- _id: z.ZodOptional<z.ZodString>;
74
- locationId: z.ZodOptional<z.ZodString>;
75
- batchId: z.ZodOptional<z.ZodString>;
76
- slotKey: z.ZodOptional<z.ZodString>;
77
- sourceUrl: z.ZodOptional<z.ZodString>;
78
- category: z.ZodOptional<z.ZodEnum<{
79
- COVER: "COVER";
80
- PROFILE: "PROFILE";
81
- LOGO: "LOGO";
82
- EXTERIOR: "EXTERIOR";
83
- INTERIOR: "INTERIOR";
84
- PRODUCT: "PRODUCT";
85
- AT_WORK: "AT_WORK";
86
- FOOD_AND_DRINK: "FOOD_AND_DRINK";
87
- MENU: "MENU";
88
- COMMON_AREA: "COMMON_AREA";
89
- ROOMS: "ROOMS";
90
- TEAMS: "TEAMS";
91
- ADDITIONAL: "ADDITIONAL";
92
- }>>;
93
- format: z.ZodOptional<z.ZodEnum<{
94
- PHOTO: "PHOTO";
95
- VIDEO: "VIDEO";
96
- }>>;
97
- operation: z.ZodOptional<z.ZodEnum<{
98
- DELETE: "DELETE";
99
- CREATE: "CREATE";
100
- }>>;
101
- sequence: z.ZodOptional<z.ZodNumber>;
102
- state: z.ZodOptional<z.ZodEnum<{
103
- PENDING: "PENDING";
104
- UPLOADING: "UPLOADING";
105
- FAILED: "FAILED";
106
- }>>;
107
- attempts: z.ZodOptional<z.ZodNumber>;
108
- mediaKey: z.ZodOptional<z.ZodString>;
109
- failure: z.ZodOptional<z.ZodObject<{
110
- reason: z.ZodOptional<z.ZodEnum<{
111
- IMAGE_TOO_SMALL: "IMAGE_TOO_SMALL";
112
- ASPECT_RATIO_REJECTED: "ASPECT_RATIO_REJECTED";
113
- FORMAT_UNSUPPORTED: "FORMAT_UNSUPPORTED";
114
- SOURCE_UNREACHABLE: "SOURCE_UNREACHABLE";
115
- PERMISSION_REVOKED: "PERMISSION_REVOKED";
116
- RATE_LIMIT_EXHAUSTED: "RATE_LIMIT_EXHAUSTED";
117
- UPLOAD_UNVERIFIED: "UPLOAD_UNVERIFIED";
118
- }>>;
119
- }, z.core.$strip>>;
120
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
121
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
122
- revision: z.ZodOptional<z.ZodString>;
123
- }, z.core.$strip>>;
124
- }, z.core.$strip>>>;
125
- bulkActionMetadata: z.ZodOptional<z.ZodObject<{
126
- totalSuccesses: z.ZodOptional<z.ZodNumber>;
127
- totalFailures: z.ZodOptional<z.ZodNumber>;
128
- undetailedFailures: z.ZodOptional<z.ZodNumber>;
129
- }, z.core.$strip>>;
130
- }, z.core.$strip>;
131
- declare const ListMediaUploadsRequest: z.ZodObject<{
132
- locationId: z.ZodString;
133
- }, z.core.$strip>;
134
- declare const ListMediaUploadsResponse: z.ZodObject<{
135
- mediaUploads: z.ZodOptional<z.ZodArray<z.ZodObject<{
136
- _id: z.ZodOptional<z.ZodString>;
137
- locationId: z.ZodOptional<z.ZodString>;
138
- batchId: z.ZodOptional<z.ZodString>;
139
- slotKey: z.ZodOptional<z.ZodString>;
140
- sourceUrl: z.ZodOptional<z.ZodString>;
141
- category: z.ZodOptional<z.ZodEnum<{
142
- COVER: "COVER";
143
- PROFILE: "PROFILE";
144
- LOGO: "LOGO";
145
- EXTERIOR: "EXTERIOR";
146
- INTERIOR: "INTERIOR";
147
- PRODUCT: "PRODUCT";
148
- AT_WORK: "AT_WORK";
149
- FOOD_AND_DRINK: "FOOD_AND_DRINK";
150
- MENU: "MENU";
151
- COMMON_AREA: "COMMON_AREA";
152
- ROOMS: "ROOMS";
153
- TEAMS: "TEAMS";
154
- ADDITIONAL: "ADDITIONAL";
155
- }>>;
156
- format: z.ZodOptional<z.ZodEnum<{
157
- PHOTO: "PHOTO";
158
- VIDEO: "VIDEO";
159
- }>>;
160
- operation: z.ZodOptional<z.ZodEnum<{
161
- DELETE: "DELETE";
162
- CREATE: "CREATE";
163
- }>>;
164
- sequence: z.ZodOptional<z.ZodNumber>;
165
- state: z.ZodOptional<z.ZodEnum<{
166
- PENDING: "PENDING";
167
- UPLOADING: "UPLOADING";
168
- FAILED: "FAILED";
169
- }>>;
170
- attempts: z.ZodOptional<z.ZodNumber>;
171
- mediaKey: z.ZodOptional<z.ZodString>;
172
- failure: z.ZodOptional<z.ZodObject<{
173
- reason: z.ZodOptional<z.ZodEnum<{
174
- IMAGE_TOO_SMALL: "IMAGE_TOO_SMALL";
175
- ASPECT_RATIO_REJECTED: "ASPECT_RATIO_REJECTED";
176
- FORMAT_UNSUPPORTED: "FORMAT_UNSUPPORTED";
177
- SOURCE_UNREACHABLE: "SOURCE_UNREACHABLE";
178
- PERMISSION_REVOKED: "PERMISSION_REVOKED";
179
- RATE_LIMIT_EXHAUSTED: "RATE_LIMIT_EXHAUSTED";
180
- UPLOAD_UNVERIFIED: "UPLOAD_UNVERIFIED";
181
- }>>;
182
- }, z.core.$strip>>;
183
- _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
184
- _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
185
- revision: z.ZodOptional<z.ZodString>;
186
- }, z.core.$strip>>>;
187
- }, z.core.$strip>;
188
- declare const DismissMediaUploadFailuresRequest: z.ZodObject<{
189
- locationId: z.ZodString;
190
- }, z.core.$strip>;
191
- declare const DismissMediaUploadFailuresResponse: z.ZodObject<{
192
- dismissedCount: z.ZodOptional<z.ZodNumber>;
193
- }, z.core.$strip>;
194
-
195
- export { BulkCreateMediaUploadsRequest, BulkCreateMediaUploadsResponse, DismissMediaUploadFailuresRequest, DismissMediaUploadFailuresResponse, ListMediaUploadsRequest, ListMediaUploadsResponse };
@@ -1,307 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // schemas.ts
31
- var schemas_exports = {};
32
- __export(schemas_exports, {
33
- BulkCreateMediaUploadsRequest: () => BulkCreateMediaUploadsRequest,
34
- BulkCreateMediaUploadsResponse: () => BulkCreateMediaUploadsResponse,
35
- DismissMediaUploadFailuresRequest: () => DismissMediaUploadFailuresRequest,
36
- DismissMediaUploadFailuresResponse: () => DismissMediaUploadFailuresResponse,
37
- ListMediaUploadsRequest: () => ListMediaUploadsRequest,
38
- ListMediaUploadsResponse: () => ListMediaUploadsResponse
39
- });
40
- module.exports = __toCommonJS(schemas_exports);
41
-
42
- // src/gbp-location-v1-media-upload-media-uploads.schemas.ts
43
- var z = __toESM(require("zod"));
44
- var BulkCreateMediaUploadsRequest = /* @__PURE__ */ z.object({
45
- mediaUploads: z.array(
46
- z.object({
47
- _id: z.string().describe("Queued change ID.").regex(
48
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
49
- "Must be a valid GUID"
50
- ).optional(),
51
- locationId: z.string().describe(
52
- "ID of the location this change applies to. This is Google's location\nidentifier."
53
- ).min(1).max(255).optional(),
54
- batchId: z.string().describe(
55
- "Groups the changes queued by one Bulk Create Media Uploads call. Useful for\ntroubleshooting, since one save can produce more than one batch."
56
- ).regex(
57
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
58
- "Must be a valid GUID"
59
- ).optional(),
60
- slotKey: z.string().describe(
61
- "Your own key for this photo: `logo`, `cover`, or `photo:<id>`.\n\nSet it to something stable and meaningful to you. It's how a failure is\nmatched back to the photo that caused it, and it's part of what makes a\nrepeated submission a duplicate rather than a second change."
62
- ).max(255).optional(),
63
- sourceUrl: z.string().describe(
64
- "Publicly reachable URL Google fetches the image from. Additions only.\n\nKeep it reachable well beyond the upload itself. A failure report renders\nthis URL as a thumbnail, possibly weeks later."
65
- ).max(2048).optional(),
66
- category: z.enum([
67
- "COVER",
68
- "PROFILE",
69
- "LOGO",
70
- "EXTERIOR",
71
- "INTERIOR",
72
- "PRODUCT",
73
- "AT_WORK",
74
- "FOOD_AND_DRINK",
75
- "MENU",
76
- "COMMON_AREA",
77
- "ROOMS",
78
- "TEAMS",
79
- "ADDITIONAL"
80
- ]).optional(),
81
- format: z.enum(["PHOTO", "VIDEO"]).optional(),
82
- operation: z.enum(["CREATE", "DELETE"]).optional(),
83
- sequence: z.number().int().describe(
84
- "Position in the order the queue applies changes, assigned by the server.\n\nEvery removal comes before every addition, because Google rejects new photos\non a profile that's already at its limit, so the old ones have to go first.\nAdditions then follow as logo, cover, and gallery in the order given."
85
- ).optional(),
86
- state: z.enum(["PENDING", "UPLOADING", "FAILED"]).optional(),
87
- attempts: z.number().int().describe("How many times this change has been attempted.").optional(),
88
- mediaKey: z.string().describe(
89
- "Google's identifier for the photo to remove. Removals only."
90
- ).max(255).optional(),
91
- failure: z.object({
92
- reason: z.enum([
93
- "IMAGE_TOO_SMALL",
94
- "ASPECT_RATIO_REJECTED",
95
- "FORMAT_UNSUPPORTED",
96
- "SOURCE_UNREACHABLE",
97
- "PERMISSION_REVOKED",
98
- "RATE_LIMIT_EXHAUSTED",
99
- "UPLOAD_UNVERIFIED"
100
- ]).optional()
101
- }).describe(
102
- "Why this change failed. Present only when `state` is `FAILED`."
103
- ).optional(),
104
- _createdDate: z.date().describe("Date and time the change was queued.").optional().nullable(),
105
- _updatedDate: z.date().describe("Date and time the change was last updated.").optional().nullable(),
106
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("Revision number, incremented on every update.").optional()
107
- })
108
- ).min(1).max(52),
109
- options: z.object({
110
- returnEntity: z.boolean().describe("Whether to return each queued item in `results.item`.").optional()
111
- }).optional()
112
- });
113
- var BulkCreateMediaUploadsResponse = /* @__PURE__ */ z.object({
114
- results: z.array(
115
- z.object({
116
- itemMetadata: z.object({
117
- _id: z.string().describe(
118
- "Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed."
119
- ).regex(
120
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
121
- "Must be a valid GUID"
122
- ).optional().nullable(),
123
- originalIndex: z.number().int().describe(
124
- "Index of the item within the request array. Allows for correlation between request and response items."
125
- ).min(0).optional(),
126
- success: z.boolean().describe(
127
- "Whether the requested action for this item was successful. When `false`, the `error` field is returned."
128
- ).optional(),
129
- error: z.object({
130
- code: z.string().describe("Error code.").optional(),
131
- description: z.string().describe("Description of the error.").optional(),
132
- data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
133
- }).describe("Details about the error in case of failure.").optional()
134
- }).describe("Whether this item was queued, and why not if it wasn't.").optional(),
135
- item: z.object({
136
- _id: z.string().describe("Queued change ID.").regex(
137
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
138
- "Must be a valid GUID"
139
- ).optional(),
140
- locationId: z.string().describe(
141
- "ID of the location this change applies to. This is Google's location\nidentifier."
142
- ).min(1).max(255).optional(),
143
- batchId: z.string().describe(
144
- "Groups the changes queued by one Bulk Create Media Uploads call. Useful for\ntroubleshooting, since one save can produce more than one batch."
145
- ).regex(
146
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
147
- "Must be a valid GUID"
148
- ).optional(),
149
- slotKey: z.string().describe(
150
- "Your own key for this photo: `logo`, `cover`, or `photo:<id>`.\n\nSet it to something stable and meaningful to you. It's how a failure is\nmatched back to the photo that caused it, and it's part of what makes a\nrepeated submission a duplicate rather than a second change."
151
- ).max(255).optional(),
152
- sourceUrl: z.string().describe(
153
- "Publicly reachable URL Google fetches the image from. Additions only.\n\nKeep it reachable well beyond the upload itself. A failure report renders\nthis URL as a thumbnail, possibly weeks later."
154
- ).max(2048).optional(),
155
- category: z.enum([
156
- "COVER",
157
- "PROFILE",
158
- "LOGO",
159
- "EXTERIOR",
160
- "INTERIOR",
161
- "PRODUCT",
162
- "AT_WORK",
163
- "FOOD_AND_DRINK",
164
- "MENU",
165
- "COMMON_AREA",
166
- "ROOMS",
167
- "TEAMS",
168
- "ADDITIONAL"
169
- ]).describe(
170
- "Where the photo appears on the profile. Additions only."
171
- ).optional(),
172
- format: z.enum(["PHOTO", "VIDEO"]).describe("Media type of the photo. Additions only.").optional(),
173
- operation: z.enum(["CREATE", "DELETE"]).describe(
174
- "Whether this change adds a photo to the profile or removes one."
175
- ).optional(),
176
- sequence: z.number().int().describe(
177
- "Position in the order the queue applies changes, assigned by the server.\n\nEvery removal comes before every addition, because Google rejects new photos\non a profile that's already at its limit, so the old ones have to go first.\nAdditions then follow as logo, cover, and gallery in the order given."
178
- ).optional(),
179
- state: z.enum(["PENDING", "UPLOADING", "FAILED"]).describe(
180
- "Whether this change is waiting, being applied, or has failed."
181
- ).optional(),
182
- attempts: z.number().int().describe("How many times this change has been attempted.").optional(),
183
- mediaKey: z.string().describe(
184
- "Google's identifier for the photo to remove. Removals only."
185
- ).max(255).optional(),
186
- failure: z.object({
187
- reason: z.enum([
188
- "IMAGE_TOO_SMALL",
189
- "ASPECT_RATIO_REJECTED",
190
- "FORMAT_UNSUPPORTED",
191
- "SOURCE_UNREACHABLE",
192
- "PERMISSION_REVOKED",
193
- "RATE_LIMIT_EXHAUSTED",
194
- "UPLOAD_UNVERIFIED"
195
- ]).describe(
196
- "Why the change failed, in terms you can show a site owner."
197
- ).optional()
198
- }).describe(
199
- "Why this change failed. Present only when `state` is `FAILED`."
200
- ).optional(),
201
- _createdDate: z.date().describe("Date and time the change was queued.").optional().nullable(),
202
- _updatedDate: z.date().describe("Date and time the change was last updated.").optional().nullable(),
203
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("Revision number, incremented on every update.").optional()
204
- }).describe(
205
- "The queued item. Returned only when `returnEntity` is `true`."
206
- ).optional()
207
- })
208
- ).min(1).max(52).optional(),
209
- bulkActionMetadata: z.object({
210
- totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").min(0).optional(),
211
- totalFailures: z.number().int().describe("Number of items that couldn't be processed.").min(0).optional(),
212
- undetailedFailures: z.number().int().describe(
213
- "Number of failures without details because detailed failure threshold was exceeded."
214
- ).min(0).optional()
215
- }).describe("How many items succeeded and failed.").optional()
216
- });
217
- var ListMediaUploadsRequest = /* @__PURE__ */ z.object({
218
- locationId: z.string().describe("ID of the location. This is Google's location identifier.").min(1).max(255)
219
- });
220
- var ListMediaUploadsResponse = /* @__PURE__ */ z.object({
221
- mediaUploads: z.array(
222
- z.object({
223
- _id: z.string().describe("Queued change ID.").regex(
224
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
225
- "Must be a valid GUID"
226
- ).optional(),
227
- locationId: z.string().describe(
228
- "ID of the location this change applies to. This is Google's location\nidentifier."
229
- ).min(1).max(255).optional(),
230
- batchId: z.string().describe(
231
- "Groups the changes queued by one Bulk Create Media Uploads call. Useful for\ntroubleshooting, since one save can produce more than one batch."
232
- ).regex(
233
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
234
- "Must be a valid GUID"
235
- ).optional(),
236
- slotKey: z.string().describe(
237
- "Your own key for this photo: `logo`, `cover`, or `photo:<id>`.\n\nSet it to something stable and meaningful to you. It's how a failure is\nmatched back to the photo that caused it, and it's part of what makes a\nrepeated submission a duplicate rather than a second change."
238
- ).max(255).optional(),
239
- sourceUrl: z.string().describe(
240
- "Publicly reachable URL Google fetches the image from. Additions only.\n\nKeep it reachable well beyond the upload itself. A failure report renders\nthis URL as a thumbnail, possibly weeks later."
241
- ).max(2048).optional(),
242
- category: z.enum([
243
- "COVER",
244
- "PROFILE",
245
- "LOGO",
246
- "EXTERIOR",
247
- "INTERIOR",
248
- "PRODUCT",
249
- "AT_WORK",
250
- "FOOD_AND_DRINK",
251
- "MENU",
252
- "COMMON_AREA",
253
- "ROOMS",
254
- "TEAMS",
255
- "ADDITIONAL"
256
- ]).describe("Where the photo appears on the profile. Additions only.").optional(),
257
- format: z.enum(["PHOTO", "VIDEO"]).describe("Media type of the photo. Additions only.").optional(),
258
- operation: z.enum(["CREATE", "DELETE"]).describe(
259
- "Whether this change adds a photo to the profile or removes one."
260
- ).optional(),
261
- sequence: z.number().int().describe(
262
- "Position in the order the queue applies changes, assigned by the server.\n\nEvery removal comes before every addition, because Google rejects new photos\non a profile that's already at its limit, so the old ones have to go first.\nAdditions then follow as logo, cover, and gallery in the order given."
263
- ).optional(),
264
- state: z.enum(["PENDING", "UPLOADING", "FAILED"]).describe(
265
- "Whether this change is waiting, being applied, or has failed."
266
- ).optional(),
267
- attempts: z.number().int().describe("How many times this change has been attempted.").optional(),
268
- mediaKey: z.string().describe(
269
- "Google's identifier for the photo to remove. Removals only."
270
- ).max(255).optional(),
271
- failure: z.object({
272
- reason: z.enum([
273
- "IMAGE_TOO_SMALL",
274
- "ASPECT_RATIO_REJECTED",
275
- "FORMAT_UNSUPPORTED",
276
- "SOURCE_UNREACHABLE",
277
- "PERMISSION_REVOKED",
278
- "RATE_LIMIT_EXHAUSTED",
279
- "UPLOAD_UNVERIFIED"
280
- ]).describe(
281
- "Why the change failed, in terms you can show a site owner."
282
- ).optional()
283
- }).describe(
284
- "Why this change failed. Present only when `state` is `FAILED`."
285
- ).optional(),
286
- _createdDate: z.date().describe("Date and time the change was queued.").optional().nullable(),
287
- _updatedDate: z.date().describe("Date and time the change was last updated.").optional().nullable(),
288
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("Revision number, incremented on every update.").optional()
289
- })
290
- ).max(500).optional()
291
- });
292
- var DismissMediaUploadFailuresRequest = /* @__PURE__ */ z.object({
293
- locationId: z.string().describe("ID of the location. This is Google's location identifier.").min(1).max(255)
294
- });
295
- var DismissMediaUploadFailuresResponse = /* @__PURE__ */ z.object({
296
- dismissedCount: z.number().int().describe("How many failed changes were cleared.").optional()
297
- });
298
- // Annotate the CommonJS export names for ESM import in node:
299
- 0 && (module.exports = {
300
- BulkCreateMediaUploadsRequest,
301
- BulkCreateMediaUploadsResponse,
302
- DismissMediaUploadFailuresRequest,
303
- DismissMediaUploadFailuresResponse,
304
- ListMediaUploadsRequest,
305
- ListMediaUploadsResponse
306
- });
307
- //# sourceMappingURL=schemas.js.map