@passly-nl/data 1.0.3 → 1.0.5

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@passly-nl/data",
3
3
  "description": "API implementation for Passly.",
4
- "version": "1.0.3",
4
+ "version": "1.0.5",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/basmilius",
@@ -50,16 +50,16 @@
50
50
  "./*": "./*"
51
51
  },
52
52
  "dependencies": {
53
- "@basmilius/http-client": "^3.12.1",
54
- "@flux-ui/types": "^3.0.0-next.34",
53
+ "@basmilius/http-client": "^3.18.0",
54
+ "@flux-ui/types": "^3.0.0-next.35",
55
55
  "@fortawesome/fontawesome-common-types": "^7.2.0",
56
- "apexcharts": "^5.10.4",
56
+ "apexcharts": "^5.10.6",
57
57
  "luxon": "^3.7.2"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/luxon": "^3.7.1",
61
- "@typescript/native-preview": "^7.0.0-dev.20260315.1",
62
- "tsdown": "^0.21.3"
61
+ "@typescript/native-preview": "^7.0.0-dev.20260423.1",
62
+ "tsdown": "^0.21.10"
63
63
  },
64
64
  "overrides": {
65
65
  "@disabled-basmilius/http-client": "link:@basmilius/http-client",
@@ -1,15 +1,4 @@
1
- import type { EmailTemplateType } from '../types/emailTemplate';
2
- import type {
3
- EmailTemplateEditorBlock,
4
- EmailTemplateEditorButtonBlock,
5
- EmailTemplateEditorCondition,
6
- EmailTemplateEditorContext,
7
- EmailTemplateEditorH1Block,
8
- EmailTemplateEditorHeaderBlock,
9
- EmailTemplateEditorIfBlock,
10
- EmailTemplateEditorParagraphBlock,
11
- EmailTemplateEditorVariable
12
- } from '../types/emailTemplateEditor';
1
+ import type { EmailTemplateEditorBlock, EmailTemplateEditorButtonBlock, EmailTemplateEditorCondition, EmailTemplateEditorContext, EmailTemplateEditorH1Block, EmailTemplateEditorHeaderBlock, EmailTemplateEditorIfBlock, EmailTemplateEditorParagraphBlock, EmailTemplateEditorVariable, EmailTemplateType } from '#data/types';
13
2
 
14
3
  const SHARED_VARIABLES: EmailTemplateEditorVariable[] = [
15
4
  {label: 'variable.merchantName', path: 'merchant.name'},
@@ -55,6 +44,10 @@ export const EMAIL_TEMPLATE_EDITOR_CONTEXTS: Record<EmailTemplateType, EmailTemp
55
44
  ],
56
45
  conditions: []
57
46
  },
47
+ order_canceled: {
48
+ variables: [...SHARED_VARIABLES, ...BUYER_VARIABLES, ...EVENT_VARIABLES, ...ORDER_VARIABLES],
49
+ conditions: [HEADER_CONDITION]
50
+ },
58
51
  order_confirmation: {
59
52
  variables: [...SHARED_VARIABLES, ...BUYER_VARIABLES, ...EVENT_VARIABLES, ...ORDER_VARIABLES],
60
53
  conditions: [
@@ -64,6 +57,14 @@ export const EMAIL_TEMPLATE_EDITOR_CONTEXTS: Record<EmailTemplateType, EmailTemp
64
57
  HEADER_CONDITION
65
58
  ]
66
59
  },
60
+ order_expired: {
61
+ variables: [...SHARED_VARIABLES, ...BUYER_VARIABLES, ...EVENT_VARIABLES, ...ORDER_VARIABLES],
62
+ conditions: [HEADER_CONDITION]
63
+ },
64
+ order_failed: {
65
+ variables: [...SHARED_VARIABLES, ...BUYER_VARIABLES, ...EVENT_VARIABLES, ...ORDER_VARIABLES],
66
+ conditions: [HEADER_CONDITION]
67
+ },
67
68
  personalization_invite: {
68
69
  variables: [...SHARED_VARIABLES, ...BUYER_VARIABLES, ...EVENT_VARIABLES, {label: 'variable.personalizeUrl', path: 'personalizeUrl'}],
69
70
  conditions: [HEADER_CONDITION]
@@ -1,5 +1,4 @@
1
1
  import { BaseResponse, BaseService, QueryString } from '@basmilius/http-client';
2
- import type { DateTime } from 'luxon';
3
2
  import { ProductAdapter } from '#data/adapter';
4
3
  import type { ProductDto } from '#data/dto';
5
4
 
@@ -31,7 +31,7 @@ export class PublicShopService extends BaseService {
31
31
  number: addressNumber,
32
32
  postal_code: addressPostalCode,
33
33
  street: addressStreet
34
- }
34
+ };
35
35
  }
36
36
 
37
37
  return await this
@@ -1,6 +1,9 @@
1
1
  export type EmailTemplateType =
2
2
  | 'merchant_invite'
3
+ | 'order_canceled'
3
4
  | 'order_confirmation'
5
+ | 'order_expired'
6
+ | 'order_failed'
4
7
  | 'personalization_invite'
5
8
  | 'personalization_request'
6
9
  | 'tickets';