@shopify/shopify-api 14.0.1 → 15.0.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/lib/types.ts CHANGED
@@ -42,11 +42,9 @@ export const ShopifyEventsHeader = {
42
42
  Topic: 'shopify-topic',
43
43
  Domain: 'shopify-shop-domain',
44
44
  ApiVersion: 'shopify-api-version',
45
- EventId: 'shopify-event-id',
46
45
  WebhookId: 'shopify-webhook-id',
47
46
  Handle: 'shopify-handle',
48
47
  Action: 'shopify-action',
49
- ResourceId: 'shopify-resource-id',
50
48
  TriggeredAt: 'shopify-triggered-at',
51
49
  } as const;
52
50
 
package/lib/version.ts CHANGED
@@ -1 +1 @@
1
- export const SHOPIFY_API_LIBRARY_VERSION = '14.0.1';
1
+ export const SHOPIFY_API_LIBRARY_VERSION = '15.0.0';
@@ -27,10 +27,8 @@ export const WEBHOOK_HEADER_NAMES = {
27
27
  domain: ShopifyEventsHeader.Domain,
28
28
  apiVersion: ShopifyEventsHeader.ApiVersion,
29
29
  webhookId: ShopifyEventsHeader.WebhookId,
30
- eventId: ShopifyEventsHeader.EventId,
31
30
  handle: ShopifyEventsHeader.Handle,
32
31
  action: ShopifyEventsHeader.Action,
33
- resourceId: ShopifyEventsHeader.ResourceId,
34
32
  triggeredAt: ShopifyEventsHeader.TriggeredAt,
35
33
  },
36
34
  } as const;
@@ -187,10 +185,8 @@ export interface WebhooksWebhookFields extends BaseWebhookFields {
187
185
  export interface EventsWebhookFields extends BaseWebhookFields {
188
186
  webhookType: typeof WebhookType.Events;
189
187
  webhookId: string;
190
- eventId: string;
191
188
  handle?: string;
192
189
  action?: string;
193
- resourceId?: string;
194
190
  }
195
191
 
196
192
  export type WebhookFields = WebhooksWebhookFields | EventsWebhookFields;
@@ -164,11 +164,6 @@ function checkEventsHeaders(
164
164
  headerNames.webhookId,
165
165
  missingHeaders,
166
166
  );
167
- const eventId = getRequiredHeader(
168
- headers,
169
- headerNames.eventId,
170
- missingHeaders,
171
- );
172
167
 
173
168
  if (missingHeaders.length) {
174
169
  return {
@@ -185,7 +180,6 @@ function checkEventsHeaders(
185
180
  domain: domain!,
186
181
  apiVersion: apiVersion!,
187
182
  webhookId: webhookId!,
188
- eventId: eventId!,
189
183
  };
190
184
 
191
185
  const handle = getHeader(headers, headerNames.handle);
@@ -194,9 +188,6 @@ function checkEventsHeaders(
194
188
  const action = getHeader(headers, headerNames.action);
195
189
  if (action) fields.action = action;
196
190
 
197
- const resourceId = getHeader(headers, headerNames.resourceId);
198
- if (resourceId) fields.resourceId = resourceId;
199
-
200
191
  const triggeredAt = getHeader(headers, headerNames.triggeredAt);
201
192
  if (triggeredAt) fields.triggeredAt = triggeredAt;
202
193
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopify/shopify-api",
3
- "version": "14.0.1",
3
+ "version": "15.0.0",
4
4
  "description": "Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks",
5
5
  "types": "./dist/ts/lib/index.d.ts",
6
6
  "module": "./dist/esm/lib/index.mjs",