mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 11:49:59 +00:00
feat(Shopify Node): Update Shopify API version (#10155)
This commit is contained in:
@@ -4,7 +4,6 @@ import type {
|
|||||||
ICredentialType,
|
ICredentialType,
|
||||||
INodeProperties,
|
INodeProperties,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
export class ShopifyAccessTokenApi implements ICredentialType {
|
export class ShopifyAccessTokenApi implements ICredentialType {
|
||||||
name = 'shopifyAccessTokenApi';
|
name = 'shopifyAccessTokenApi';
|
||||||
|
|
||||||
@@ -51,7 +50,7 @@ export class ShopifyAccessTokenApi implements ICredentialType {
|
|||||||
|
|
||||||
test: ICredentialTestRequest = {
|
test: ICredentialTestRequest = {
|
||||||
request: {
|
request: {
|
||||||
baseURL: '=https://{{$credentials?.shopSubdomain}}.myshopify.com/admin/api/2019-10',
|
baseURL: '=https://{{$credentials?.shopSubdomain}}.myshopify.com/admin/api/2024-07',
|
||||||
url: '/products.json',
|
url: '/products.json',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import type {
|
|||||||
IHttpRequestOptions,
|
IHttpRequestOptions,
|
||||||
INodeProperties,
|
INodeProperties,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
export class ShopifyApi implements ICredentialType {
|
export class ShopifyApi implements ICredentialType {
|
||||||
name = 'shopifyApi';
|
name = 'shopifyApi';
|
||||||
|
|
||||||
@@ -63,7 +62,7 @@ export class ShopifyApi implements ICredentialType {
|
|||||||
|
|
||||||
test: ICredentialTestRequest = {
|
test: ICredentialTestRequest = {
|
||||||
request: {
|
request: {
|
||||||
baseURL: '=https://{{$credentials.shopSubdomain}}.myshopify.com/admin/api/2019-10',
|
baseURL: '=https://{{$credentials.shopSubdomain}}.myshopify.com/admin/api/2024-07',
|
||||||
url: '/products.json',
|
url: '/products.json',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export async function shopifyApiRequest(
|
|||||||
const options: IRequestOptions = {
|
const options: IRequestOptions = {
|
||||||
method,
|
method,
|
||||||
qs: query,
|
qs: query,
|
||||||
uri: uri || `https://${credentials.shopSubdomain}.myshopify.com/admin/api/2019-10${resource}`,
|
uri: uri || `https://${credentials.shopSubdomain}.myshopify.com/admin/api/2024-07/${resource}`,
|
||||||
body,
|
body,
|
||||||
json: true,
|
json: true,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -63,6 +63,13 @@ export class Shopify implements INodeType {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
properties: [
|
properties: [
|
||||||
|
{
|
||||||
|
displayName: 'Shopify API Version: 2024-07',
|
||||||
|
type: 'notice',
|
||||||
|
name: 'apiVersion',
|
||||||
|
default: '',
|
||||||
|
isNodeSetting: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Authentication',
|
displayName: 'Authentication',
|
||||||
name: 'authentication',
|
name: 'authentication',
|
||||||
|
|||||||
Reference in New Issue
Block a user