@ottoai/documents 1.2.2 → 1.2.4

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,2 +1,3 @@
1
- import * as us from './united-states';
2
- export { us };
1
+ import * as us from "./united-states";
2
+ import { FedralTaxClassification, TaxClassification } from "./util/pdf-editor";
3
+ export { us, FedralTaxClassification, TaxClassification };
@@ -23,7 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.us = void 0;
26
+ exports.TaxClassification = exports.FedralTaxClassification = exports.us = void 0;
27
27
  const us = __importStar(require("./united-states"));
28
28
  exports.us = us;
29
+ const pdf_editor_1 = require("./util/pdf-editor");
30
+ Object.defineProperty(exports, "FedralTaxClassification", { enumerable: true, get: function () { return pdf_editor_1.FedralTaxClassification; } });
31
+ Object.defineProperty(exports, "TaxClassification", { enumerable: true, get: function () { return pdf_editor_1.TaxClassification; } });
29
32
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/create/pdf/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsC;AAK7B,gBAAE"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/create/pdf/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsC;AAM7B,gBAAE;AALX,kDAA+E;AAKlE,wGALJ,oCAAuB,OAKI;AAAE,kGALJ,8BAAiB,OAKI"}
@@ -1,2 +1,7 @@
1
1
  import { w9Form } from "./w9-form";
2
- export { w9Form };
2
+ import { W9FormDataDto, AddressDto, RequesterDto } from "./w9-form/form.dto";
3
+ declare enum SupportedFormTypes {
4
+ FORM_W9 = "form_w9",
5
+ FORM_1099 = "form_1099"
6
+ }
7
+ export { w9Form, SupportedFormTypes, W9FormDataDto, AddressDto, RequesterDto };
@@ -1,6 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.w9Form = void 0;
3
+ exports.RequesterDto = exports.AddressDto = exports.W9FormDataDto = exports.SupportedFormTypes = exports.w9Form = void 0;
4
4
  const w9_form_1 = require("./w9-form");
5
5
  Object.defineProperty(exports, "w9Form", { enumerable: true, get: function () { return w9_form_1.w9Form; } });
6
+ const form_dto_1 = require("./w9-form/form.dto");
7
+ Object.defineProperty(exports, "W9FormDataDto", { enumerable: true, get: function () { return form_dto_1.W9FormDataDto; } });
8
+ Object.defineProperty(exports, "AddressDto", { enumerable: true, get: function () { return form_dto_1.AddressDto; } });
9
+ Object.defineProperty(exports, "RequesterDto", { enumerable: true, get: function () { return form_dto_1.RequesterDto; } });
10
+ var SupportedFormTypes;
11
+ (function (SupportedFormTypes) {
12
+ SupportedFormTypes["FORM_W9"] = "form_w9";
13
+ SupportedFormTypes["FORM_1099"] = "form_1099";
14
+ })(SupportedFormTypes || (exports.SupportedFormTypes = SupportedFormTypes = {}));
6
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/create/pdf/united-states/index.ts"],"names":[],"mappings":";;;AAAA,uCAAmC;AAE1B,uFAFA,gBAAM,OAEA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/create/pdf/united-states/index.ts"],"names":[],"mappings":";;;AAAA,uCAAmC;AAQ1B,uFARA,gBAAM,OAQA;AAPf,iDAA6E;AAOxC,8FAP5B,wBAAa,OAO4B;AAAE,2FAP5B,qBAAU,OAO4B;AAAE,6FAP5B,uBAAY,OAO4B;AAL5E,IAAK,kBAGJ;AAHD,WAAK,kBAAkB;IACrB,yCAAmB,CAAA;IACnB,6CAAuB,CAAA;AACzB,CAAC,EAHI,kBAAkB,kCAAlB,kBAAkB,QAGtB"}
@@ -0,0 +1,28 @@
1
+ import { FedralTaxClassification, TaxClassification } from "../../util/pdf-editor";
2
+ export declare class AddressDto {
3
+ city: string | null;
4
+ state: string | null;
5
+ postal_code: string | null;
6
+ address_line_1: string | null;
7
+ address_line_2?: string | null;
8
+ }
9
+ export declare class RequesterDto {
10
+ name: string;
11
+ address: AddressDto;
12
+ }
13
+ export declare class W9FormDataDto {
14
+ name: string;
15
+ businessName?: string;
16
+ fedralTaxClassification: FedralTaxClassification;
17
+ taxClassification?: TaxClassification;
18
+ otherTaxClassification?: string;
19
+ exemptionCode?: string;
20
+ address: AddressDto;
21
+ accountNumber?: string;
22
+ ssn?: string;
23
+ ein?: string;
24
+ signature: string;
25
+ date: string;
26
+ fatcaCode?: string;
27
+ requester?: RequesterDto;
28
+ }
@@ -0,0 +1,188 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.W9FormDataDto = exports.RequesterDto = exports.AddressDto = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const class_validator_1 = require("class-validator");
15
+ const pdf_editor_1 = require("../../util/pdf-editor");
16
+ class AddressDto {
17
+ }
18
+ exports.AddressDto = AddressDto;
19
+ __decorate([
20
+ (0, swagger_1.ApiPropertyOptional)({ description: "City", example: "New York" }),
21
+ (0, class_validator_1.IsOptional)(),
22
+ (0, class_validator_1.IsString)(),
23
+ __metadata("design:type", Object)
24
+ ], AddressDto.prototype, "city", void 0);
25
+ __decorate([
26
+ (0, swagger_1.ApiPropertyOptional)({ description: "State", example: "NY" }),
27
+ (0, class_validator_1.IsOptional)(),
28
+ (0, class_validator_1.IsString)(),
29
+ __metadata("design:type", Object)
30
+ ], AddressDto.prototype, "state", void 0);
31
+ __decorate([
32
+ (0, swagger_1.ApiPropertyOptional)({ description: "Postal code", example: "10001" }),
33
+ (0, class_validator_1.IsOptional)(),
34
+ (0, class_validator_1.IsString)(),
35
+ __metadata("design:type", Object)
36
+ ], AddressDto.prototype, "postal_code", void 0);
37
+ __decorate([
38
+ (0, swagger_1.ApiPropertyOptional)({
39
+ description: "Primary address line",
40
+ example: "123 Main St",
41
+ }),
42
+ (0, class_validator_1.IsOptional)(),
43
+ (0, class_validator_1.IsString)(),
44
+ __metadata("design:type", Object)
45
+ ], AddressDto.prototype, "address_line_1", void 0);
46
+ __decorate([
47
+ (0, swagger_1.ApiPropertyOptional)({
48
+ description: "Secondary address line",
49
+ example: "Apt 4B",
50
+ }),
51
+ (0, class_validator_1.IsOptional)(),
52
+ (0, class_validator_1.IsString)(),
53
+ __metadata("design:type", Object)
54
+ ], AddressDto.prototype, "address_line_2", void 0);
55
+ class RequesterDto {
56
+ }
57
+ exports.RequesterDto = RequesterDto;
58
+ __decorate([
59
+ (0, swagger_1.ApiProperty)({ description: "Requesting entity name", example: "ACME Corp" }),
60
+ (0, class_validator_1.IsString)(),
61
+ (0, class_validator_1.IsNotEmpty)(),
62
+ __metadata("design:type", String)
63
+ ], RequesterDto.prototype, "name", void 0);
64
+ __decorate([
65
+ (0, swagger_1.ApiProperty)({ description: "Requesting entity address" }),
66
+ (0, class_validator_1.IsObject)(),
67
+ (0, class_validator_1.IsNotEmpty)(),
68
+ __metadata("design:type", AddressDto)
69
+ ], RequesterDto.prototype, "address", void 0);
70
+ class W9FormDataDto {
71
+ }
72
+ exports.W9FormDataDto = W9FormDataDto;
73
+ __decorate([
74
+ (0, swagger_1.ApiProperty)({ description: "Full legal name", example: "John Doe" }),
75
+ (0, class_validator_1.IsString)(),
76
+ (0, class_validator_1.IsNotEmpty)(),
77
+ __metadata("design:type", String)
78
+ ], W9FormDataDto.prototype, "name", void 0);
79
+ __decorate([
80
+ (0, swagger_1.ApiPropertyOptional)({
81
+ description: "Business name if applicable",
82
+ example: "John Doe Inc.",
83
+ }),
84
+ (0, class_validator_1.IsOptional)(),
85
+ (0, class_validator_1.IsString)(),
86
+ __metadata("design:type", String)
87
+ ], W9FormDataDto.prototype, "businessName", void 0);
88
+ __decorate([
89
+ (0, swagger_1.ApiProperty)({
90
+ description: "Federal tax classification",
91
+ enum: pdf_editor_1.FedralTaxClassification,
92
+ }),
93
+ (0, class_validator_1.IsEnum)(pdf_editor_1.FedralTaxClassification),
94
+ __metadata("design:type", String)
95
+ ], W9FormDataDto.prototype, "fedralTaxClassification", void 0);
96
+ __decorate([
97
+ (0, swagger_1.ApiPropertyOptional)({
98
+ description: "Federal tax classification details",
99
+ enum: pdf_editor_1.TaxClassification,
100
+ }),
101
+ (0, class_validator_1.IsOptional)(),
102
+ (0, class_validator_1.IsEnum)(pdf_editor_1.TaxClassification),
103
+ __metadata("design:type", String)
104
+ ], W9FormDataDto.prototype, "taxClassification", void 0);
105
+ __decorate([
106
+ (0, swagger_1.ApiPropertyOptional)({
107
+ description: "Other tax classification",
108
+ example: "Other Classification",
109
+ }),
110
+ (0, class_validator_1.IsOptional)(),
111
+ (0, class_validator_1.IsString)(),
112
+ __metadata("design:type", String)
113
+ ], W9FormDataDto.prototype, "otherTaxClassification", void 0);
114
+ __decorate([
115
+ (0, swagger_1.ApiPropertyOptional)({
116
+ description: "Exemption from backup withholding",
117
+ example: "Exempt",
118
+ }),
119
+ (0, class_validator_1.IsOptional)(),
120
+ (0, class_validator_1.IsString)(),
121
+ __metadata("design:type", String)
122
+ ], W9FormDataDto.prototype, "exemptionCode", void 0);
123
+ __decorate([
124
+ (0, swagger_1.ApiProperty)({ description: "Street address" }),
125
+ (0, class_validator_1.IsObject)(),
126
+ (0, class_validator_1.IsNotEmpty)(),
127
+ __metadata("design:type", AddressDto)
128
+ ], W9FormDataDto.prototype, "address", void 0);
129
+ __decorate([
130
+ (0, swagger_1.ApiPropertyOptional)({
131
+ description: "Account number for specific requester",
132
+ example: "123456789",
133
+ }),
134
+ (0, class_validator_1.IsOptional)(),
135
+ (0, class_validator_1.IsString)(),
136
+ __metadata("design:type", String)
137
+ ], W9FormDataDto.prototype, "accountNumber", void 0);
138
+ __decorate([
139
+ (0, swagger_1.ApiPropertyOptional)({
140
+ description: "SSN, required if individual",
141
+ example: "123-45-6789",
142
+ }),
143
+ (0, class_validator_1.IsOptional)(),
144
+ (0, class_validator_1.IsString)(),
145
+ __metadata("design:type", String)
146
+ ], W9FormDataDto.prototype, "ssn", void 0);
147
+ __decorate([
148
+ (0, swagger_1.ApiPropertyOptional)({
149
+ description: "EIN, required if business or entity",
150
+ example: "12-3456789",
151
+ }),
152
+ (0, class_validator_1.IsOptional)(),
153
+ (0, class_validator_1.IsString)(),
154
+ __metadata("design:type", String)
155
+ ], W9FormDataDto.prototype, "ein", void 0);
156
+ __decorate([
157
+ (0, swagger_1.ApiProperty)({
158
+ description: "Base64-encoded signature image",
159
+ example: "data:image/png;base64,iVBORw0...",
160
+ }),
161
+ (0, class_validator_1.IsBase64)(),
162
+ (0, class_validator_1.IsNotEmpty)(),
163
+ __metadata("design:type", String)
164
+ ], W9FormDataDto.prototype, "signature", void 0);
165
+ __decorate([
166
+ (0, swagger_1.ApiProperty)({ description: "Date of signing", example: "2023-10-01" }),
167
+ (0, class_validator_1.IsDateString)(),
168
+ (0, class_validator_1.IsNotEmpty)(),
169
+ __metadata("design:type", String)
170
+ ], W9FormDataDto.prototype, "date", void 0);
171
+ __decorate([
172
+ (0, swagger_1.ApiPropertyOptional)({
173
+ description: "FATCA reporting code if applicable",
174
+ example: "A",
175
+ }),
176
+ (0, class_validator_1.IsOptional)(),
177
+ (0, class_validator_1.IsString)(),
178
+ __metadata("design:type", String)
179
+ ], W9FormDataDto.prototype, "fatcaCode", void 0);
180
+ __decorate([
181
+ (0, swagger_1.ApiPropertyOptional)({
182
+ description: "Details of the entity requesting the W-9 form",
183
+ }),
184
+ (0, class_validator_1.IsOptional)(),
185
+ (0, class_validator_1.IsObject)(),
186
+ __metadata("design:type", RequesterDto)
187
+ ], W9FormDataDto.prototype, "requester", void 0);
188
+ //# sourceMappingURL=form.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.dto.js","sourceRoot":"","sources":["../../../../../src/create/pdf/united-states/w9-form/form.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,qDAQyB;AACzB,sDAG+B;AAG/B,MAAa,UAAU;CA+BtB;AA/BD,gCA+BC;AA3BC;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IACjE,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wCACS;AAKpB;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC5D,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yCACU;AAKrB;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IACrE,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACgB;AAQ3B;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,sBAAsB;QACnC,OAAO,EAAE,aAAa;KACvB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACmB;AAQ9B;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,wBAAwB;QACrC,OAAO,EAAE,QAAQ;KAClB,CAAC;IACD,IAAA,4BAAU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7D,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;8BACC,YAAY;gDAAC"}
@@ -1,19 +1,2 @@
1
- import { Address, FedralTaxClassification, Requester, TaxClassification } from "../../util/pdf-editor";
2
- interface W9FormData {
3
- name: string;
4
- businessName?: string;
5
- fedralTaxClassification: FedralTaxClassification;
6
- taxClassification?: TaxClassification;
7
- otherTaxClassification?: string;
8
- exemptionCode?: string;
9
- address: Address;
10
- accountNumber?: string;
11
- ssn?: string;
12
- ein?: string;
13
- signature: string;
14
- date: string;
15
- fatcaCode?: string;
16
- requester?: Requester;
17
- }
18
- export declare const w9Form: (data: W9FormData) => Promise<Buffer>;
19
- export {};
1
+ import { W9FormDataDto } from "./form.dto";
2
+ export declare const w9Form: (data: W9FormDataDto) => Promise<Buffer>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/create/pdf/united-states/w9-form/index.ts"],"names":[],"mappings":";;;;;;AAAA,2BAA8B;AAC9B,+BAAiC;AACjC,+BAA+B;AAC/B,uCAAkC;AAElC,gDAA4C;AAC5C,4CAA6C;AAE7C,8CAA4D;AAC5D,4CAAoE;AACpE,gEAAyC;AAQzC,MAAM,eAAe,GAAG,IAAA,gBAAS,EAAC,aAAQ,CAAC,CAAC;AAmB5C,MAAM,iBAAiB,GAAG,CAAC,IAAgB,EAA4B,EAAE;IACvE,MAAM,KAAK,GAAG,IAAA,iBAAM,EAAC,IAAI,IAAI,EAAE,EAAE,iCAAqB,CAAC,CAAC;IACxD,OAAO;QACL;YACE,IAAI,EAAE,GAAG,IAAI,CAAC,IAAI,EAAE;YACpB,YAAY,EAAE,GAAG,IAAI,CAAC,YAAY,EAAE;YACpC,OAAO,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE;YACzC,cAAc,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,CAAC,KAAK,KAAK,IAAI,CAA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AAC;IAEF,MAAM,OAAO,GAAG;QACd,IAAI,EAAE,cAAI;QACV,KAAK,EAAE,eAAK;KACb,CAAC;IACF,MAAM,MAAM,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACvC,OAAO,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;QAC1D,OAAO,IAAA,iBAAQ,EAAC,GAAG,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAfW,QAAA,MAAM,UAejB"}
@@ -9,13 +9,6 @@ export interface Field {
9
9
  export type PdfCoordinates = {
10
10
  [name: string]: Field;
11
11
  };
12
- export interface Address {
13
- city: string | null;
14
- state: string | null;
15
- postal_code: string | null;
16
- address_line_1: string | null;
17
- address_line_2?: string | null;
18
- }
19
12
  export declare enum FedralTaxClassification {
20
13
  IndividualSoleProprietor = "solo",
21
14
  CCorporation = "c_corporation",
@@ -30,6 +23,13 @@ export declare enum TaxClassification {
30
23
  SCorporation = "s_corporation",
31
24
  Partnership = "partnership"
32
25
  }
26
+ export interface Address {
27
+ city: string | null;
28
+ state: string | null;
29
+ postal_code: string | null;
30
+ address_line_1: string | null;
31
+ address_line_2?: string | null;
32
+ }
33
33
  export interface Requester {
34
34
  name: string;
35
35
  address: Address;
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-editor.js","sourceRoot":"","sources":["../../../../src/create/pdf/util/pdf-editor.ts"],"names":[],"mappings":";;;AAqBA,IAAY,uBAQX;AARD,WAAY,uBAAuB;IACjC,4DAAiC,CAAA;IACjC,yDAA8B,CAAA;IAC9B,yDAA8B,CAAA;IAC9B,sDAA2B,CAAA;IAC3B,gDAAqB,CAAA;IACrB,sCAAW,CAAA;IACX,0CAAe,CAAA;AACjB,CAAC,EARW,uBAAuB,uCAAvB,uBAAuB,QAQlC;AAED,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,mDAA8B,CAAA;IAC9B,mDAA8B,CAAA;IAC9B,gDAA2B,CAAA;AAC7B,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B"}
1
+ {"version":3,"file":"pdf-editor.js","sourceRoot":"","sources":["../../../../src/create/pdf/util/pdf-editor.ts"],"names":[],"mappings":";;;AAaA,IAAY,uBAQX;AARD,WAAY,uBAAuB;IACjC,4DAAiC,CAAA;IACjC,yDAA8B,CAAA;IAC9B,yDAA8B,CAAA;IAC9B,sDAA2B,CAAA;IAC3B,gDAAqB,CAAA;IACrB,sCAAW,CAAA;IACX,0CAAe,CAAA;AACjB,CAAC,EARW,uBAAuB,uCAAvB,uBAAuB,QAQlC;AAED,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,mDAA8B,CAAA;IAC9B,mDAA8B,CAAA;IAC9B,gDAA2B,CAAA;AAC7B,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B"}