quidproquo-webserver 0.1.0 → 0.1.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.
@@ -1,7 +1,6 @@
1
1
  export * from './admin';
2
2
  export * from './apiKeyValidation';
3
3
  export * from './dns';
4
- export * from "./extract";
5
4
  export * from './genericDataResource';
6
5
  export * from './openApiSpec';
7
6
  export * from './routeAuthValidation';
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./admin"), exports);
18
18
  __exportStar(require("./apiKeyValidation"), exports);
19
19
  __exportStar(require("./dns"), exports);
20
- __exportStar(require("./extract"), exports);
21
20
  __exportStar(require("./genericDataResource"), exports);
22
21
  __exportStar(require("./openApiSpec"), exports);
23
22
  __exportStar(require("./routeAuthValidation"), exports);
@@ -33,7 +33,7 @@ const defineAdminSettings = (logServiceName, rootDomain, advancedSettings) => {
33
33
  (0, quidproquo_core_1.defineEventBus)('qpq-admin-wsq', {
34
34
  owner: { module: logServiceName },
35
35
  }),
36
- (0, quidproquo_core_1.defineQueue)('qpq-admin-ws-config', {
36
+ (0, quidproquo_core_1.defineQueue)('qpqadmin-wscfg', {
37
37
  [WebSocketQueueQpqAdminClientMessageEventType_1.WebsocketAdminClientMessageEventType.ConfigSyncRequest]: {
38
38
  basePath: __dirname,
39
39
  functionName: 'onConfigSyncRequest',
@@ -1,7 +1,6 @@
1
1
  export * from './admin';
2
2
  export * from './apiKeyValidation';
3
3
  export * from './dns';
4
- export * from "./extract";
5
4
  export * from './genericDataResource';
6
5
  export * from './openApiSpec';
7
6
  export * from './routeAuthValidation';
@@ -1,7 +1,6 @@
1
1
  export * from './admin';
2
2
  export * from './apiKeyValidation';
3
3
  export * from './dns';
4
- export * from "./extract";
5
4
  export * from './genericDataResource';
6
5
  export * from './openApiSpec';
7
6
  export * from './routeAuthValidation';
@@ -28,7 +28,7 @@ export const defineAdminSettings = (logServiceName, rootDomain, advancedSettings
28
28
  defineEventBus('qpq-admin-wsq', {
29
29
  owner: { module: logServiceName },
30
30
  }),
31
- defineQueue('qpq-admin-ws-config', {
31
+ defineQueue('qpqadmin-wscfg', {
32
32
  [WebsocketAdminClientMessageEventType.ConfigSyncRequest]: {
33
33
  basePath: __dirname,
34
34
  functionName: 'onConfigSyncRequest',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quidproquo-webserver",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "",
5
5
  "main": "./lib/commonjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -33,10 +33,10 @@
33
33
  "homepage": "https://github.com/joe-coady/quidproquo#readme",
34
34
  "dependencies": {
35
35
  "@anthropic-ai/sdk": "^0.19.1",
36
- "quidproquo-core": "0.1.0"
36
+ "quidproquo-core": "0.1.1"
37
37
  },
38
38
  "devDependencies": {
39
- "quidproquo-tsconfig": "0.1.0",
39
+ "quidproquo-tsconfig": "0.1.1",
40
40
  "typescript": "^5.8.2"
41
41
  }
42
42
  }
@@ -1,3 +0,0 @@
1
- export declare enum ExtractActionType {
2
- Expense = "@quidproquo-webserver/Extract/Expense"
3
- }
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExtractActionType = void 0;
4
- var ExtractActionType;
5
- (function (ExtractActionType) {
6
- ExtractActionType["Expense"] = "@quidproquo-webserver/Extract/Expense";
7
- })(ExtractActionType || (exports.ExtractActionType = ExtractActionType = {}));
@@ -1,10 +0,0 @@
1
- import { ExtractExpenseActionRequester } from './ExtractExpenseActionTypes';
2
- export declare const ExtractExpenseErrorTypeEnum: {
3
- FileNotFound: string;
4
- UnsupportedFormat: string;
5
- InvalidParameter: string;
6
- RateLimited: string;
7
- InvalidStorageClass: string;
8
- AccessDenied: string;
9
- };
10
- export declare function askExtractExpense(storageDriveName: string, filePath: string): ExtractExpenseActionRequester;
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExtractExpenseErrorTypeEnum = void 0;
4
- exports.askExtractExpense = askExtractExpense;
5
- const quidproquo_core_1 = require("quidproquo-core");
6
- const ExtractActionType_1 = require("./ExtractActionType");
7
- exports.ExtractExpenseErrorTypeEnum = (0, quidproquo_core_1.createErrorEnumForAction)(ExtractActionType_1.ExtractActionType.Expense, [
8
- 'FileNotFound',
9
- 'UnsupportedFormat',
10
- 'InvalidParameter',
11
- 'RateLimited',
12
- 'InvalidStorageClass',
13
- 'AccessDenied',
14
- ]);
15
- function* askExtractExpense(storageDriveName, filePath) {
16
- return yield {
17
- type: ExtractActionType_1.ExtractActionType.Expense,
18
- payload: {
19
- storageDriveName,
20
- filePath,
21
- },
22
- };
23
- }
@@ -1,40 +0,0 @@
1
- import { Action, ActionProcessor, ActionRequester } from 'quidproquo-core';
2
- import { ExtractActionType } from './ExtractActionType';
3
- type ExtractedExpenseDocument = {
4
- metadata: {
5
- merchantName?: string;
6
- merchantAddress?: string;
7
- date?: string;
8
- currency?: string;
9
- paymentMethod?: string;
10
- subtotal?: number;
11
- tax?: number;
12
- total?: number;
13
- [key: string]: any;
14
- };
15
- lineItems?: Array<{
16
- description: string;
17
- quantity?: number;
18
- unitPrice?: number;
19
- total?: number;
20
- [key: string]: any;
21
- }>;
22
- rawText?: string;
23
- source: {
24
- storageDrive: string;
25
- filePath: string;
26
- textractJobId?: string;
27
- };
28
- _raw?: any;
29
- };
30
- export interface ExtractExpenseActionPayload {
31
- storageDriveName: string;
32
- filePath: string;
33
- }
34
- export interface ExtractExpenseAction extends Action<ExtractExpenseActionPayload> {
35
- type: ExtractActionType.Expense;
36
- payload: ExtractExpenseActionPayload;
37
- }
38
- export type ExtractExpenseActionProcessor = ActionProcessor<ExtractExpenseAction, ExtractedExpenseDocument>;
39
- export type ExtractExpenseActionRequester = ActionRequester<ExtractExpenseAction, ExtractedExpenseDocument>;
40
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export * from './ExtractActionType';
2
- export * from './ExtractExpenseActionRequester';
3
- export * from './ExtractExpenseActionTypes';
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ExtractActionType"), exports);
18
- __exportStar(require("./ExtractExpenseActionRequester"), exports);
19
- __exportStar(require("./ExtractExpenseActionTypes"), exports);
@@ -1,3 +0,0 @@
1
- export declare enum ExtractActionType {
2
- Expense = "@quidproquo-webserver/Extract/Expense"
3
- }
@@ -1,4 +0,0 @@
1
- export var ExtractActionType;
2
- (function (ExtractActionType) {
3
- ExtractActionType["Expense"] = "@quidproquo-webserver/Extract/Expense";
4
- })(ExtractActionType || (ExtractActionType = {}));
@@ -1,10 +0,0 @@
1
- import { ExtractExpenseActionRequester } from './ExtractExpenseActionTypes';
2
- export declare const ExtractExpenseErrorTypeEnum: {
3
- FileNotFound: string;
4
- UnsupportedFormat: string;
5
- InvalidParameter: string;
6
- RateLimited: string;
7
- InvalidStorageClass: string;
8
- AccessDenied: string;
9
- };
10
- export declare function askExtractExpense(storageDriveName: string, filePath: string): ExtractExpenseActionRequester;
@@ -1,19 +0,0 @@
1
- import { createErrorEnumForAction } from 'quidproquo-core';
2
- import { ExtractActionType } from './ExtractActionType';
3
- export const ExtractExpenseErrorTypeEnum = createErrorEnumForAction(ExtractActionType.Expense, [
4
- 'FileNotFound',
5
- 'UnsupportedFormat',
6
- 'InvalidParameter',
7
- 'RateLimited',
8
- 'InvalidStorageClass',
9
- 'AccessDenied',
10
- ]);
11
- export function* askExtractExpense(storageDriveName, filePath) {
12
- return yield {
13
- type: ExtractActionType.Expense,
14
- payload: {
15
- storageDriveName,
16
- filePath,
17
- },
18
- };
19
- }
@@ -1,40 +0,0 @@
1
- import { Action, ActionProcessor, ActionRequester } from 'quidproquo-core';
2
- import { ExtractActionType } from './ExtractActionType';
3
- type ExtractedExpenseDocument = {
4
- metadata: {
5
- merchantName?: string;
6
- merchantAddress?: string;
7
- date?: string;
8
- currency?: string;
9
- paymentMethod?: string;
10
- subtotal?: number;
11
- tax?: number;
12
- total?: number;
13
- [key: string]: any;
14
- };
15
- lineItems?: Array<{
16
- description: string;
17
- quantity?: number;
18
- unitPrice?: number;
19
- total?: number;
20
- [key: string]: any;
21
- }>;
22
- rawText?: string;
23
- source: {
24
- storageDrive: string;
25
- filePath: string;
26
- textractJobId?: string;
27
- };
28
- _raw?: any;
29
- };
30
- export interface ExtractExpenseActionPayload {
31
- storageDriveName: string;
32
- filePath: string;
33
- }
34
- export interface ExtractExpenseAction extends Action<ExtractExpenseActionPayload> {
35
- type: ExtractActionType.Expense;
36
- payload: ExtractExpenseActionPayload;
37
- }
38
- export type ExtractExpenseActionProcessor = ActionProcessor<ExtractExpenseAction, ExtractedExpenseDocument>;
39
- export type ExtractExpenseActionRequester = ActionRequester<ExtractExpenseAction, ExtractedExpenseDocument>;
40
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- export * from './ExtractActionType';
2
- export * from './ExtractExpenseActionRequester';
3
- export * from './ExtractExpenseActionTypes';
@@ -1,3 +0,0 @@
1
- export * from './ExtractActionType';
2
- export * from './ExtractExpenseActionRequester';
3
- export * from './ExtractExpenseActionTypes';