@obelism/content 0.24.0 → 0.25.0
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/dist/webhooks.d.mts +24 -2
- package/dist/webhooks.d.mts.map +1 -1
- package/dist/webhooks.d.ts +24 -2
- package/dist/webhooks.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/webhooks.d.mts
CHANGED
|
@@ -56,8 +56,30 @@ type EntryReviewClosedEvent = WebhookEventOf<'entry.review_closed', {
|
|
|
56
56
|
revision: number;
|
|
57
57
|
reason?: string;
|
|
58
58
|
}>;
|
|
59
|
+
type WebhookShopifyItem = {
|
|
60
|
+
id: string;
|
|
61
|
+
handle: string | null;
|
|
62
|
+
};
|
|
63
|
+
type StoreChange = {
|
|
64
|
+
entries: WebhookEntry[];
|
|
65
|
+
tags: string[];
|
|
66
|
+
};
|
|
67
|
+
type ProductUpdatedEvent = WebhookEventOf<'product.updated', StoreChange & {
|
|
68
|
+
product: WebhookShopifyItem;
|
|
69
|
+
collections: WebhookShopifyItem[];
|
|
70
|
+
}>;
|
|
71
|
+
type ProductDeletedEvent = WebhookEventOf<'product.deleted', StoreChange & {
|
|
72
|
+
product: WebhookShopifyItem;
|
|
73
|
+
collections: WebhookShopifyItem[];
|
|
74
|
+
}>;
|
|
75
|
+
type CollectionUpdatedEvent = WebhookEventOf<'collection.updated', StoreChange & {
|
|
76
|
+
collection: WebhookShopifyItem;
|
|
77
|
+
}>;
|
|
78
|
+
type CollectionDeletedEvent = WebhookEventOf<'collection.deleted', StoreChange & {
|
|
79
|
+
collection: WebhookShopifyItem;
|
|
80
|
+
}>;
|
|
59
81
|
type WebhookTestEvent = WebhookEventOf<'webhook.test', Record<string, never>>;
|
|
60
|
-
type WebhookEvent = EntryPublishedEvent | EntryUnpublishedEvent | EntryDeletedEvent | EntryMovedEvent | AssetUpdatedEvent | ModelChangedEvent | LocalesChangedEvent | EntryReviewRequestedEvent | EntryReviewClosedEvent | WebhookTestEvent;
|
|
82
|
+
type WebhookEvent = EntryPublishedEvent | EntryUnpublishedEvent | EntryDeletedEvent | EntryMovedEvent | AssetUpdatedEvent | ModelChangedEvent | LocalesChangedEvent | EntryReviewRequestedEvent | EntryReviewClosedEvent | ProductUpdatedEvent | ProductDeletedEvent | CollectionUpdatedEvent | CollectionDeletedEvent | WebhookTestEvent;
|
|
61
83
|
type WebhookEventType = WebhookEvent['type'];
|
|
62
84
|
declare class WebhookVerificationError extends Error {
|
|
63
85
|
constructor(message: string);
|
|
@@ -81,5 +103,5 @@ type WebhookHandlerOptions = {
|
|
|
81
103
|
declare const createWebhookHandler: ({ secret, onEvent, tolerance }: WebhookHandlerOptions) => (request: Request) => Promise<Response>;
|
|
82
104
|
|
|
83
105
|
export { WebhookVerificationError, createWebhookHandler, verifyWebhook };
|
|
84
|
-
export type { AssetUpdatedEvent, EntryDeletedEvent, EntryMovedEvent, EntryPublishedEvent, EntryReviewClosedEvent, EntryReviewRequestedEvent, EntryUnpublishedEvent, LocalesChangedEvent, ModelChangedEvent, VerifyWebhookOptions, WebhookEntry, WebhookEvent, WebhookEventType, WebhookHandlerOptions, WebhookMessage, WebhookTestEvent };
|
|
106
|
+
export type { AssetUpdatedEvent, CollectionDeletedEvent, CollectionUpdatedEvent, EntryDeletedEvent, EntryMovedEvent, EntryPublishedEvent, EntryReviewClosedEvent, EntryReviewRequestedEvent, EntryUnpublishedEvent, LocalesChangedEvent, ModelChangedEvent, ProductDeletedEvent, ProductUpdatedEvent, VerifyWebhookOptions, WebhookEntry, WebhookEvent, WebhookEventType, WebhookHandlerOptions, WebhookMessage, WebhookShopifyItem, WebhookTestEvent };
|
|
85
107
|
//# sourceMappingURL=webhooks.d.mts.map
|
package/dist/webhooks.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.mts","sources":["../src/webhooks.ts"],"mappings":";;AACA,KAAK,YAAY;AACjB;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB;AACA,KAAK,cAAc;AACnB;AACA;AACA;AACA,iBAAiB,WAAW;AAC5B;AACA;AACA,KAAK,mBAAmB,GAAG,cAAc;AACzC,WAAW,YAAY;AACvB;AACA,KAAK,qBAAqB,GAAG,cAAc;AAC3C,WAAW,YAAY;AACvB;AACA,KAAK,iBAAiB,GAAG,cAAc;AACvC,WAAW,YAAY;AACvB;AACA,KAAK,eAAe,GAAG,cAAc;AACrC,WAAW,YAAY;AACvB;AACA,mBAAmB,MAAM;AACzB;AACA,KAAK,iBAAiB,GAAG,cAAc;AACvC;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA,KAAK,iBAAiB,GAAG,cAAc;AACvC;AACA;AACA;AACA;AACA;AACA,KAAK,mBAAmB,GAAG,cAAc;AACzC;AACA;AACA;AACA,KAAK,yBAAyB,GAAG,cAAc;AAC/C,WAAW,YAAY;AACvB;AACA;AACA;AACA,KAAK,sBAAsB,GAAG,cAAc;AAC5C,WAAW,YAAY;AACvB;AACA;AACA;AACA;AACA,KAAK,gBAAgB,GAAG,cAAc,iBAAiB,MAAM;AAC7D,KAAK,YAAY,GAAG,mBAAmB,GAAG,qBAAqB,GAAG,iBAAiB,GAAG,eAAe,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,mBAAmB,GAAG,yBAAyB,GAAG,sBAAsB,GAAG,gBAAgB;
|
|
1
|
+
{"version":3,"file":"webhooks.d.mts","sources":["../src/webhooks.ts"],"mappings":";;AACA,KAAK,YAAY;AACjB;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB;AACA,KAAK,cAAc;AACnB;AACA;AACA;AACA,iBAAiB,WAAW;AAC5B;AACA;AACA,KAAK,mBAAmB,GAAG,cAAc;AACzC,WAAW,YAAY;AACvB;AACA,KAAK,qBAAqB,GAAG,cAAc;AAC3C,WAAW,YAAY;AACvB;AACA,KAAK,iBAAiB,GAAG,cAAc;AACvC,WAAW,YAAY;AACvB;AACA,KAAK,eAAe,GAAG,cAAc;AACrC,WAAW,Y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AAc,aAAa,YAAY,OAAO,GAAG,cAAc,wCAAwC,oBAAoB,KAAK,OAAO,CAAC,YAAY;AACpJ,KAAK,qBAAqB;AAC1B;AACA,qBAAqB,YAAY;AACjC;AACA;AACA;AACA;AACA,cAAc,oBAAoB,mCAAmC,qBAAqB,eAAe,OAAO,KAAK,OAAO,CAAC,QAAQ","names":[]}
|
package/dist/webhooks.d.ts
CHANGED
|
@@ -56,8 +56,30 @@ type EntryReviewClosedEvent = WebhookEventOf<'entry.review_closed', {
|
|
|
56
56
|
revision: number;
|
|
57
57
|
reason?: string;
|
|
58
58
|
}>;
|
|
59
|
+
type WebhookShopifyItem = {
|
|
60
|
+
id: string;
|
|
61
|
+
handle: string | null;
|
|
62
|
+
};
|
|
63
|
+
type StoreChange = {
|
|
64
|
+
entries: WebhookEntry[];
|
|
65
|
+
tags: string[];
|
|
66
|
+
};
|
|
67
|
+
type ProductUpdatedEvent = WebhookEventOf<'product.updated', StoreChange & {
|
|
68
|
+
product: WebhookShopifyItem;
|
|
69
|
+
collections: WebhookShopifyItem[];
|
|
70
|
+
}>;
|
|
71
|
+
type ProductDeletedEvent = WebhookEventOf<'product.deleted', StoreChange & {
|
|
72
|
+
product: WebhookShopifyItem;
|
|
73
|
+
collections: WebhookShopifyItem[];
|
|
74
|
+
}>;
|
|
75
|
+
type CollectionUpdatedEvent = WebhookEventOf<'collection.updated', StoreChange & {
|
|
76
|
+
collection: WebhookShopifyItem;
|
|
77
|
+
}>;
|
|
78
|
+
type CollectionDeletedEvent = WebhookEventOf<'collection.deleted', StoreChange & {
|
|
79
|
+
collection: WebhookShopifyItem;
|
|
80
|
+
}>;
|
|
59
81
|
type WebhookTestEvent = WebhookEventOf<'webhook.test', Record<string, never>>;
|
|
60
|
-
type WebhookEvent = EntryPublishedEvent | EntryUnpublishedEvent | EntryDeletedEvent | EntryMovedEvent | AssetUpdatedEvent | ModelChangedEvent | LocalesChangedEvent | EntryReviewRequestedEvent | EntryReviewClosedEvent | WebhookTestEvent;
|
|
82
|
+
type WebhookEvent = EntryPublishedEvent | EntryUnpublishedEvent | EntryDeletedEvent | EntryMovedEvent | AssetUpdatedEvent | ModelChangedEvent | LocalesChangedEvent | EntryReviewRequestedEvent | EntryReviewClosedEvent | ProductUpdatedEvent | ProductDeletedEvent | CollectionUpdatedEvent | CollectionDeletedEvent | WebhookTestEvent;
|
|
61
83
|
type WebhookEventType = WebhookEvent['type'];
|
|
62
84
|
declare class WebhookVerificationError extends Error {
|
|
63
85
|
constructor(message: string);
|
|
@@ -81,5 +103,5 @@ type WebhookHandlerOptions = {
|
|
|
81
103
|
declare const createWebhookHandler: ({ secret, onEvent, tolerance }: WebhookHandlerOptions) => (request: Request) => Promise<Response>;
|
|
82
104
|
|
|
83
105
|
export { WebhookVerificationError, createWebhookHandler, verifyWebhook };
|
|
84
|
-
export type { AssetUpdatedEvent, EntryDeletedEvent, EntryMovedEvent, EntryPublishedEvent, EntryReviewClosedEvent, EntryReviewRequestedEvent, EntryUnpublishedEvent, LocalesChangedEvent, ModelChangedEvent, VerifyWebhookOptions, WebhookEntry, WebhookEvent, WebhookEventType, WebhookHandlerOptions, WebhookMessage, WebhookTestEvent };
|
|
106
|
+
export type { AssetUpdatedEvent, CollectionDeletedEvent, CollectionUpdatedEvent, EntryDeletedEvent, EntryMovedEvent, EntryPublishedEvent, EntryReviewClosedEvent, EntryReviewRequestedEvent, EntryUnpublishedEvent, LocalesChangedEvent, ModelChangedEvent, ProductDeletedEvent, ProductUpdatedEvent, VerifyWebhookOptions, WebhookEntry, WebhookEvent, WebhookEventType, WebhookHandlerOptions, WebhookMessage, WebhookShopifyItem, WebhookTestEvent };
|
|
85
107
|
//# sourceMappingURL=webhooks.d.ts.map
|
package/dist/webhooks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sources":["../src/webhooks.ts"],"mappings":";;AACA,KAAK,YAAY;AACjB;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB;AACA,KAAK,cAAc;AACnB;AACA;AACA;AACA,iBAAiB,WAAW;AAC5B;AACA;AACA,KAAK,mBAAmB,GAAG,cAAc;AACzC,WAAW,YAAY;AACvB;AACA,KAAK,qBAAqB,GAAG,cAAc;AAC3C,WAAW,YAAY;AACvB;AACA,KAAK,iBAAiB,GAAG,cAAc;AACvC,WAAW,YAAY;AACvB;AACA,KAAK,eAAe,GAAG,cAAc;AACrC,WAAW,YAAY;AACvB;AACA,mBAAmB,MAAM;AACzB;AACA,KAAK,iBAAiB,GAAG,cAAc;AACvC;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA,KAAK,iBAAiB,GAAG,cAAc;AACvC;AACA;AACA;AACA;AACA;AACA,KAAK,mBAAmB,GAAG,cAAc;AACzC;AACA;AACA;AACA,KAAK,yBAAyB,GAAG,cAAc;AAC/C,WAAW,YAAY;AACvB;AACA;AACA;AACA,KAAK,sBAAsB,GAAG,cAAc;AAC5C,WAAW,YAAY;AACvB;AACA;AACA;AACA;AACA,KAAK,gBAAgB,GAAG,cAAc,iBAAiB,MAAM;AAC7D,KAAK,YAAY,GAAG,mBAAmB,GAAG,qBAAqB,GAAG,iBAAiB,GAAG,eAAe,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,mBAAmB,GAAG,yBAAyB,GAAG,sBAAsB,GAAG,gBAAgB;
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sources":["../src/webhooks.ts"],"mappings":";;AACA,KAAK,YAAY;AACjB;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB;AACA,KAAK,cAAc;AACnB;AACA;AACA;AACA,iBAAiB,WAAW;AAC5B;AACA;AACA,KAAK,mBAAmB,GAAG,cAAc;AACzC,WAAW,YAAY;AACvB;AACA,KAAK,qBAAqB,GAAG,cAAc;AAC3C,WAAW,YAAY;AACvB;AACA,KAAK,iBAAiB,GAAG,cAAc;AACvC,WAAW,YAAY;AACvB;AACA,KAAK,eAAe,GAAG,cAAc;AACrC,WAAW,YA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Ac,aAAa,YAAY,OAAO,GAAG,cAAc,wCAAwC,oBAAoB,KAAK,OAAO,CAAC,YAAY;AACpJ,KAAK,qBAAqB;AAC1B;AACA,qBAAqB,YAAY;AACjC;AACA;AACA;AACA;AACA,cAAc,oBAAoB,mCAAmC,qBAAqB,eAAe,OAAO,KAAK,OAAO,CAAC,QAAQ","names":[]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@obelism/content",
|
|
3
3
|
"description": "Obelism Content SDK: the delivery API client, the visual editor bridge with prompt editing, editing on your own site, webhook verification, and the content model CLI",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.25.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cms",
|
|
7
7
|
"headless-cms",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"@obelism/sdk-typescript-config": "^0.0.0",
|
|
101
101
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
102
|
-
"@types/node": "^
|
|
102
|
+
"@types/node": "^26.6.5",
|
|
103
103
|
"@typescript/typescript6": "^6.0.2",
|
|
104
104
|
"@vercel/oidc": "4.0.3",
|
|
105
105
|
"bunchee": "^7.0.2",
|