@passly-nl/data 0.1.0 → 1.0.0-beta.1

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/README.md CHANGED
@@ -4,16 +4,16 @@
4
4
 
5
5
  ---
6
6
 
7
- # `@basmilius/utils`
7
+ # `@passly-nl/data`
8
8
 
9
- Various utilities that are commonly used throughout personal Vue-related projects.
9
+ Full API implementation for Passly.nl.
10
10
 
11
11
  ## ⭐️ Prerequisites
12
12
 
13
- - Bun >= 1.2.11
14
- - Node >= 23
13
+ - Bun >= 1.3.0
14
+ - Node >= 25
15
15
 
16
16
  ## 🚀 Getting started
17
17
 
18
18
  1. Run `bun install` in the root of the project.
19
- 2. Run `bun --cwd packages/utils build` to build the project.
19
+ 2. Run `bun run build` to build the project.
@@ -0,0 +1,47 @@
1
+ export type Claim =
2
+ | 'admin:view'
3
+ | 'auth:login'
4
+ | 'buyers:view'
5
+ | 'events:create'
6
+ | 'events:manage'
7
+ | 'events:publish'
8
+ | 'events:statistics'
9
+ | 'events:unpublish'
10
+ | 'events:view'
11
+ | 'events:tickets:export'
12
+ | 'events:tickets:scan'
13
+ | 'events:tickets:view'
14
+ | 'finance:export'
15
+ | 'finance:view'
16
+ | 'finance:invoices:view'
17
+ | 'merchant:admin'
18
+ | 'merchant:users'
19
+ | 'orders:export'
20
+ | 'orders:view'
21
+ | 'statistics:view'
22
+ | 'tasks:view';
23
+
24
+ export type UserTokenType =
25
+ | 'access_token'
26
+ | 'authorization_code'
27
+ | 'refresh_token'
28
+ | 'session';
29
+
30
+ export type BrowserType =
31
+ | 'brave'
32
+ | 'chrome'
33
+ | 'edge'
34
+ | 'firefox'
35
+ | 'opera'
36
+ | 'safari'
37
+ | 'samsunginternet'
38
+ | 'vivaldi';
39
+
40
+ export type OperatingSystemType =
41
+ | 'ios'
42
+ | 'ipados'
43
+ | 'macos'
44
+ | 'windows'
45
+ | 'linux'
46
+ | 'android'
47
+ | 'chromeos';
@@ -0,0 +1,28 @@
1
+ export type EventStatus =
2
+ | 'active'
3
+ | 'concluded'
4
+ | 'happening'
5
+ | 'in_sale'
6
+ | 'pending';
7
+
8
+ export type ShopElementType =
9
+ | 'button'
10
+ | 'divider'
11
+ | 'heading'
12
+ | 'notice'
13
+ | 'product'
14
+ | 'text';
15
+
16
+ export type ShopFieldRequirement =
17
+ | 'disabled'
18
+ | 'enabled'
19
+ | 'required';
20
+
21
+ export type ShopStatus =
22
+ | 'closed'
23
+ | 'concluded'
24
+ | 'in_sale'
25
+ | 'pending';
26
+
27
+ export type TicketTemplateType =
28
+ | 'default';
@@ -0,0 +1,14 @@
1
+ export type DailyRevenueChart = {
2
+ current: DailyRevenueChartEntry[];
3
+ previous: DailyRevenueChartEntry[];
4
+ };
5
+
6
+ export type DailyRevenueChartEntry = {
7
+ readonly date: string;
8
+ readonly label: string;
9
+ readonly value: number;
10
+ };
11
+
12
+ export type InvoiceLineType =
13
+ | 'fee'
14
+ | 'manual';
@@ -0,0 +1,19 @@
1
+ export type Gender =
2
+ | 'female'
3
+ | 'male'
4
+ | 'other';
5
+
6
+ export type HeadingLevel =
7
+ | 1
8
+ | 2
9
+ | 3
10
+ | 4
11
+ | 5
12
+ | 6;
13
+
14
+ export type NoticeType =
15
+ | 'primary'
16
+ | 'danger'
17
+ | 'info'
18
+ | 'success'
19
+ | 'warning';
@@ -0,0 +1,7 @@
1
+ export type OrderOrigin =
2
+ | 'local'
3
+ | 'ticketswap';
4
+
5
+ export type OrderType =
6
+ | 'default'
7
+ | 'guest';
@@ -0,0 +1,11 @@
1
+ export type PaymentProviderType =
2
+ | 'mollie'
3
+ | 'manual';
4
+
5
+ export type TransactionStatus =
6
+ | 'canceled'
7
+ | 'expired'
8
+ | 'failed'
9
+ | 'paid'
10
+ | 'pending'
11
+ | 'setup'
@@ -0,0 +1,2 @@
1
+ export type ProductType =
2
+ | 'ticket'
@@ -0,0 +1,7 @@
1
+ export type PublicShopElementType =
2
+ | 'button'
3
+ | 'divider'
4
+ | 'heading'
5
+ | 'notice'
6
+ | 'product'
7
+ | 'text';
@@ -0,0 +1,12 @@
1
+ export type ScanStatus =
2
+ | 'checkin'
3
+ | 'checkout'
4
+ | 'expired'
5
+ | 'pending'
6
+ | 'upcoming';
7
+
8
+ export type TicketValidity =
9
+ | 'valid'
10
+ | 'invalid'
11
+ | 'refunded'
12
+ | 'swapped';
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": "0.1.0",
4
+ "version": "1.0.0-beta.1",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/basmilius",
@@ -27,7 +27,7 @@
27
27
  ],
28
28
  "publishConfig": {
29
29
  "access": "public",
30
- "provenance": false
30
+ "provenance": true
31
31
  },
32
32
  "scripts": {
33
33
  "build": "tsgo --noEmit && bun -b build.ts"