diff --git a/package.json b/package.json index afa4fbd..0dff34f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@crystallize/js-api-client", "license": "MIT", - "version": "1.0.1", + "version": "1.0.2", "author": "Crystallize (https://crystallize.com)", "contributors": [ "Sébastien Morel " diff --git a/src/core/subscription.ts b/src/core/subscription.ts index 984dc55..0986c33 100644 --- a/src/core/subscription.ts +++ b/src/core/subscription.ts @@ -35,6 +35,11 @@ export function createSubscriptionContractManager(apiClient: ClientInterface) { __args: { input: { ...intent, + status: { + ...intent.status, + renewAt: intent.status.renewAt.toISOString(), + activeUntil: intent.status.renewAt.toISOString(), + }, }, }, id: true, diff --git a/src/types/catalogue.ts b/src/types/catalogue.ts index faf8ee4..a44de7f 100644 --- a/src/types/catalogue.ts +++ b/src/types/catalogue.ts @@ -26,6 +26,7 @@ export const componentType = z .enum([ 'Boolean', 'ComponentChoice', + 'ContentChunk', 'Datetime', 'File', 'GridRelations',