@makeswift/runtime 0.28.0 → 0.28.1-canary.1

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/dist/cjs/api-handler/handlers/manifest.js +1 -1
  2. package/dist/cjs/api-handler/handlers/webhook/diff-projection.js +62 -0
  3. package/dist/cjs/api-handler/handlers/webhook/diff-projection.js.map +1 -0
  4. package/dist/cjs/api-handler/handlers/webhook/site-published.js +2 -2
  5. package/dist/cjs/api-handler/handlers/webhook/site-published.js.map +1 -1
  6. package/dist/cjs/api-handler/handlers/webhook/types.js +6 -1
  7. package/dist/cjs/api-handler/handlers/webhook/types.js.map +1 -1
  8. package/dist/cjs/api-handler/index.js.map +1 -1
  9. package/dist/cjs/builder/index.js +6 -1
  10. package/dist/cjs/builder/index.js.map +1 -1
  11. package/dist/cjs/client/index.js +3 -3
  12. package/dist/cjs/unstable-framework-support/index.js.map +1 -1
  13. package/dist/esm/api-handler/handlers/manifest.js +1 -1
  14. package/dist/esm/api-handler/handlers/webhook/diff-projection.js +38 -0
  15. package/dist/esm/api-handler/handlers/webhook/diff-projection.js.map +1 -0
  16. package/dist/esm/api-handler/handlers/webhook/site-published.js +2 -2
  17. package/dist/esm/api-handler/handlers/webhook/site-published.js.map +1 -1
  18. package/dist/esm/api-handler/handlers/webhook/types.js +6 -1
  19. package/dist/esm/api-handler/handlers/webhook/types.js.map +1 -1
  20. package/dist/esm/api-handler/index.js.map +1 -1
  21. package/dist/esm/builder/index.js +4 -1
  22. package/dist/esm/builder/index.js.map +1 -1
  23. package/dist/esm/client/index.js +3 -3
  24. package/dist/esm/unstable-framework-support/index.js +3 -1
  25. package/dist/esm/unstable-framework-support/index.js.map +1 -1
  26. package/dist/types/api-handler/handlers/webhook/diff-projection.d.ts +201 -0
  27. package/dist/types/api-handler/handlers/webhook/diff-projection.d.ts.map +1 -0
  28. package/dist/types/api-handler/handlers/webhook/site-published.d.ts +1 -1
  29. package/dist/types/api-handler/handlers/webhook/site-published.d.ts.map +1 -1
  30. package/dist/types/api-handler/handlers/webhook/types.d.ts +672 -1
  31. package/dist/types/api-handler/handlers/webhook/types.d.ts.map +1 -1
  32. package/dist/types/api-handler/index.d.ts +2 -2
  33. package/dist/types/api-handler/index.d.ts.map +1 -1
  34. package/dist/types/builder/index.d.ts +2 -0
  35. package/dist/types/builder/index.d.ts.map +1 -1
  36. package/dist/types/unstable-framework-support/index.d.ts +1 -1
  37. package/dist/types/unstable-framework-support/index.d.ts.map +1 -1
  38. package/package.json +1 -1
@@ -0,0 +1,201 @@
1
+ import { z } from 'zod';
2
+ export declare const diffProjectionSchema: z.ZodObject<{
3
+ components: z.ZodArray<z.ZodObject<{
4
+ id: z.ZodString;
5
+ locale: z.ZodNullable<z.ZodString>;
6
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ id: string;
9
+ locale: string | null;
10
+ changeType: "deleted" | "created" | "updated";
11
+ }, {
12
+ id: string;
13
+ locale: string | null;
14
+ changeType: "deleted" | "created" | "updated";
15
+ }>, "many">;
16
+ pages: z.ZodArray<z.ZodObject<{
17
+ pageId: z.ZodString;
18
+ locale: z.ZodNullable<z.ZodString>;
19
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
20
+ pathname: z.ZodString;
21
+ previousPathname: z.ZodOptional<z.ZodString>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ pathname: string;
24
+ locale: string | null;
25
+ pageId: string;
26
+ changeType: "deleted" | "created" | "updated";
27
+ previousPathname?: string | undefined;
28
+ }, {
29
+ pathname: string;
30
+ locale: string | null;
31
+ pageId: string;
32
+ changeType: "deleted" | "created" | "updated";
33
+ previousPathname?: string | undefined;
34
+ }>, "many">;
35
+ globalElements: z.ZodArray<z.ZodObject<{
36
+ id: z.ZodString;
37
+ locale: z.ZodNullable<z.ZodString>;
38
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ id: string;
41
+ locale: string | null;
42
+ changeType: "deleted" | "created" | "updated";
43
+ }, {
44
+ id: string;
45
+ locale: string | null;
46
+ changeType: "deleted" | "created" | "updated";
47
+ }>, "many">;
48
+ swatches: z.ZodArray<z.ZodObject<{
49
+ id: z.ZodString;
50
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ id: string;
53
+ changeType: "deleted" | "created" | "updated";
54
+ }, {
55
+ id: string;
56
+ changeType: "deleted" | "created" | "updated";
57
+ }>, "many">;
58
+ typographies: z.ZodArray<z.ZodObject<{
59
+ id: z.ZodString;
60
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ id: string;
63
+ changeType: "deleted" | "created" | "updated";
64
+ }, {
65
+ id: string;
66
+ changeType: "deleted" | "created" | "updated";
67
+ }>, "many">;
68
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
69
+ components: z.ZodArray<z.ZodObject<{
70
+ id: z.ZodString;
71
+ locale: z.ZodNullable<z.ZodString>;
72
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ id: string;
75
+ locale: string | null;
76
+ changeType: "deleted" | "created" | "updated";
77
+ }, {
78
+ id: string;
79
+ locale: string | null;
80
+ changeType: "deleted" | "created" | "updated";
81
+ }>, "many">;
82
+ pages: z.ZodArray<z.ZodObject<{
83
+ pageId: z.ZodString;
84
+ locale: z.ZodNullable<z.ZodString>;
85
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
86
+ pathname: z.ZodString;
87
+ previousPathname: z.ZodOptional<z.ZodString>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ pathname: string;
90
+ locale: string | null;
91
+ pageId: string;
92
+ changeType: "deleted" | "created" | "updated";
93
+ previousPathname?: string | undefined;
94
+ }, {
95
+ pathname: string;
96
+ locale: string | null;
97
+ pageId: string;
98
+ changeType: "deleted" | "created" | "updated";
99
+ previousPathname?: string | undefined;
100
+ }>, "many">;
101
+ globalElements: z.ZodArray<z.ZodObject<{
102
+ id: z.ZodString;
103
+ locale: z.ZodNullable<z.ZodString>;
104
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ id: string;
107
+ locale: string | null;
108
+ changeType: "deleted" | "created" | "updated";
109
+ }, {
110
+ id: string;
111
+ locale: string | null;
112
+ changeType: "deleted" | "created" | "updated";
113
+ }>, "many">;
114
+ swatches: z.ZodArray<z.ZodObject<{
115
+ id: z.ZodString;
116
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ id: string;
119
+ changeType: "deleted" | "created" | "updated";
120
+ }, {
121
+ id: string;
122
+ changeType: "deleted" | "created" | "updated";
123
+ }>, "many">;
124
+ typographies: z.ZodArray<z.ZodObject<{
125
+ id: z.ZodString;
126
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ id: string;
129
+ changeType: "deleted" | "created" | "updated";
130
+ }, {
131
+ id: string;
132
+ changeType: "deleted" | "created" | "updated";
133
+ }>, "many">;
134
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
135
+ components: z.ZodArray<z.ZodObject<{
136
+ id: z.ZodString;
137
+ locale: z.ZodNullable<z.ZodString>;
138
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ id: string;
141
+ locale: string | null;
142
+ changeType: "deleted" | "created" | "updated";
143
+ }, {
144
+ id: string;
145
+ locale: string | null;
146
+ changeType: "deleted" | "created" | "updated";
147
+ }>, "many">;
148
+ pages: z.ZodArray<z.ZodObject<{
149
+ pageId: z.ZodString;
150
+ locale: z.ZodNullable<z.ZodString>;
151
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
152
+ pathname: z.ZodString;
153
+ previousPathname: z.ZodOptional<z.ZodString>;
154
+ }, "strip", z.ZodTypeAny, {
155
+ pathname: string;
156
+ locale: string | null;
157
+ pageId: string;
158
+ changeType: "deleted" | "created" | "updated";
159
+ previousPathname?: string | undefined;
160
+ }, {
161
+ pathname: string;
162
+ locale: string | null;
163
+ pageId: string;
164
+ changeType: "deleted" | "created" | "updated";
165
+ previousPathname?: string | undefined;
166
+ }>, "many">;
167
+ globalElements: z.ZodArray<z.ZodObject<{
168
+ id: z.ZodString;
169
+ locale: z.ZodNullable<z.ZodString>;
170
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
171
+ }, "strip", z.ZodTypeAny, {
172
+ id: string;
173
+ locale: string | null;
174
+ changeType: "deleted" | "created" | "updated";
175
+ }, {
176
+ id: string;
177
+ locale: string | null;
178
+ changeType: "deleted" | "created" | "updated";
179
+ }>, "many">;
180
+ swatches: z.ZodArray<z.ZodObject<{
181
+ id: z.ZodString;
182
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ id: string;
185
+ changeType: "deleted" | "created" | "updated";
186
+ }, {
187
+ id: string;
188
+ changeType: "deleted" | "created" | "updated";
189
+ }>, "many">;
190
+ typographies: z.ZodArray<z.ZodObject<{
191
+ id: z.ZodString;
192
+ changeType: z.ZodEnum<["created", "updated", "deleted"]>;
193
+ }, "strip", z.ZodTypeAny, {
194
+ id: string;
195
+ changeType: "deleted" | "created" | "updated";
196
+ }, {
197
+ id: string;
198
+ changeType: "deleted" | "created" | "updated";
199
+ }>, "many">;
200
+ }, z.ZodTypeAny, "passthrough">>;
201
+ //# sourceMappingURL=diff-projection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diff-projection.d.ts","sourceRoot":"","sources":["../../../../../src/api-handler/handlers/webhook/diff-projection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAqCvB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAWjB,CAAA"}
@@ -3,6 +3,6 @@ type SitePublishedParams = {
3
3
  onPublish?: OnPublish;
4
4
  revalidate: () => void;
5
5
  };
6
- export declare function handleSitePublished(_payload: SitePublishedWebhookPayload, { onPublish, revalidate }: SitePublishedParams): Promise<WebhookHandlerResult>;
6
+ export declare function handleSitePublished(payload: SitePublishedWebhookPayload, { onPublish, revalidate }: SitePublishedParams): Promise<WebhookHandlerResult>;
7
7
  export {};
8
8
  //# sourceMappingURL=site-published.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"site-published.d.ts","sourceRoot":"","sources":["../../../../../src/api-handler/handlers/webhook/site-published.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EAC1B,MAAM,SAAS,CAAA;AAEhB,KAAK,mBAAmB,GAAG;IACzB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB,CAAA;AAED,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,2BAA2B,EACrC,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE,mBAAmB,GAC7C,OAAO,CAAC,oBAAoB,CAAC,CAW/B"}
1
+ {"version":3,"file":"site-published.d.ts","sourceRoot":"","sources":["../../../../../src/api-handler/handlers/webhook/site-published.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EAC1B,MAAM,SAAS,CAAA;AAEhB,KAAK,mBAAmB,GAAG;IACzB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB,CAAA;AAED,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,2BAA2B,EACpC,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE,mBAAmB,GAC7C,OAAO,CAAC,oBAAoB,CAAC,CAW/B"}