@edifice.io/timeline-node-api 0.0.0-stage → 0.1.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.
@@ -0,0 +1,2 @@
1
+ export * from './nats/types';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+ (function(n){typeof define=="function"&&define.amd?define(n):n()})(function(){"use strict"});
@@ -0,0 +1,73 @@
1
+ export interface NotificationPreview {
2
+ images?: string[];
3
+ text?: string;
4
+ }
5
+ export interface PushNotifParams {
6
+ body?: string;
7
+ title?: string;
8
+ }
9
+ export interface RegisterNotificationBatchRequest {
10
+ notifications?: RegisterNotificationRequest[];
11
+ }
12
+ export interface RegisterNotificationRequest {
13
+ appAddress?: string;
14
+ defaultFrequency?: 'NEVER' | 'IMMEDIATE' | 'DAILY' | 'WEEKLY';
15
+ eventType?: string;
16
+ pushNotif?: boolean;
17
+ restriction?: 'INTERNAL' | 'EXTERNAL' | 'NONE' | 'HIDDEN';
18
+ template?: string;
19
+ /**
20
+ * The application type for this notification.
21
+ */
22
+ type?: string;
23
+ }
24
+ export interface RegisterNotificationResponse {
25
+ /**
26
+ * Number of notifications registered.
27
+ */
28
+ count?: number;
29
+ }
30
+ export interface RegisterTimelineI18nRequest {
31
+ application?: string;
32
+ /**
33
+ * Translations (key -> value) by language.
34
+ */
35
+ translationsByLanguage?: {
36
+ [key: string]: {
37
+ [key: string]: string;
38
+ };
39
+ };
40
+ }
41
+ export interface RegisterTimelineI18nResponse {
42
+ application?: string;
43
+ keysCount?: number;
44
+ languagesCount?: number;
45
+ }
46
+ export interface SendNotificationRequest {
47
+ disableAntiFlood?: boolean;
48
+ disableMailNotification?: boolean;
49
+ headers?: {
50
+ [key: string]: string;
51
+ };
52
+ notificationName?: string;
53
+ params?: {
54
+ [key: string]: string;
55
+ };
56
+ preview?: NotificationPreview;
57
+ /**
58
+ * Epoch milliseconds.
59
+ */
60
+ publishDate?: number;
61
+ pushNotif?: PushNotifParams;
62
+ recipientIds?: string[];
63
+ resourceId?: string;
64
+ resourceName?: string;
65
+ resourceUri?: string;
66
+ senderId?: string;
67
+ senderName?: string;
68
+ subResourceId?: string;
69
+ }
70
+ export interface SendNotificationResponse {
71
+ recipientCount?: number;
72
+ }
73
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/nats/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gCAAgC;IAC/C,aAAa,CAAC,EAAE,2BAA2B,EAAE,CAAC;CAC/C;AAED,MAAM,WAAW,2BAA2B;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,2BAA2B;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,sBAAsB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;CACvE;AAED,MAAM,WAAW,4BAA4B;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,uBAAuB;IACtC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACnC,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,wBAAwB;IACvC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
package/package.json CHANGED
@@ -1,6 +1,58 @@
1
1
  {
2
2
  "name": "@edifice.io/timeline-node-api",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "Clients to interact with timeline-nats-service",
5
+ "private": false,
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "keywords": [],
10
+ "author": "Edifice",
11
+ "license": "AGPL-3.0",
12
+ "engines": {
13
+ "node": "22"
14
+ },
15
+ "engineStrict": true,
16
+ "type": "module",
17
+ "exports": {
18
+ ".": {
19
+ "require": "./dist/index.umd.cjs",
20
+ "import": "./dist/index.js",
21
+ "types": "./dist/index.d.ts"
22
+ }
23
+ },
24
+ "main": "dist/index.umd.cjs",
25
+ "module": "dist/index.js",
26
+ "types": "dist/index.d.ts",
27
+ "files": [
28
+ "dist"
29
+ ],
30
+ "dependencies": {
31
+ "@nats-io/transport-node": "3.2.0",
32
+ "@nats-io/nats-core": "3.2.0"
33
+ },
34
+ "devDependencies": {
35
+ "@types/node": "25.2.0",
36
+ "husky": "9.0.11",
37
+ "prettier": "3.2.5",
38
+ "semantic-release": "23.0.2",
39
+ "typescript": "5.2.2",
40
+ "vite": "5.1.4",
41
+ "vite-plugin-dts": "4.3.0",
42
+ "rxjs": "7.8.1"
43
+ },
44
+ "lint-staged": {
45
+ "*.{js,ts,jsx,tsx,json,css,md}": "pnpm format"
46
+ },
47
+ "scripts": {
48
+ "dev": "vite",
49
+ "build": "tsc && vite build",
50
+ "build:types": "tsc --build",
51
+ "preview": "vite preview",
52
+ "clean": "rm -Rf dist",
53
+ "format": "pnpm run format:write && pnpm run format:check",
54
+ "format:check": "npx prettier --check \"src/**/*.ts\"",
55
+ "format:write": "npx prettier --write \"src/**/*.ts\"",
56
+ "pre-commit": "pnpm run format"
57
+ }
6
58
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.