@ottoai/documents 1.2.3 → 1.2.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.
@@ -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,29 @@
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
+ isForeignPartners?: boolean;
20
+ exemptionCode?: string;
21
+ address: AddressDto;
22
+ accountNumber?: string;
23
+ ssn?: string;
24
+ ein?: string;
25
+ signature: string;
26
+ date: string;
27
+ fatcaCode?: string;
28
+ requester?: RequesterDto;
29
+ }
@@ -0,0 +1,205 @@
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.ApiProperty)({ description: "City", example: "New York" }),
21
+ (0, class_validator_1.IsString)(),
22
+ (0, class_validator_1.IsNotEmpty)(),
23
+ __metadata("design:type", Object)
24
+ ], AddressDto.prototype, "city", void 0);
25
+ __decorate([
26
+ (0, swagger_1.ApiProperty)({ description: "State", example: "NY" }),
27
+ (0, class_validator_1.IsString)(),
28
+ (0, class_validator_1.IsNotEmpty)(),
29
+ __metadata("design:type", Object)
30
+ ], AddressDto.prototype, "state", void 0);
31
+ __decorate([
32
+ (0, swagger_1.ApiProperty)({ description: "Postal code", example: "10001" }),
33
+ (0, class_validator_1.IsString)(),
34
+ (0, class_validator_1.IsNotEmpty)(),
35
+ __metadata("design:type", Object)
36
+ ], AddressDto.prototype, "postal_code", void 0);
37
+ __decorate([
38
+ (0, swagger_1.ApiProperty)({
39
+ description: "Primary address line",
40
+ example: "123 Main St",
41
+ }),
42
+ (0, class_validator_1.IsString)(),
43
+ (0, class_validator_1.IsNotEmpty)(),
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.ApiPropertyOptional)({ description: "Requesting entity address" }),
66
+ (0, class_validator_1.IsOptional)(),
67
+ (0, class_validator_1.IsObject)(),
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: "Tax classification, required if Federal Tax Classification is LLC",
99
+ enum: pdf_editor_1.TaxClassification,
100
+ }),
101
+ (0, class_validator_1.ValidateIf)((obj) => obj.fedralTaxClassification === pdf_editor_1.FedralTaxClassification.LLC),
102
+ (0, class_validator_1.IsEnum)(pdf_editor_1.TaxClassification),
103
+ (0, class_validator_1.IsNotEmpty)(),
104
+ __metadata("design:type", String)
105
+ ], W9FormDataDto.prototype, "taxClassification", void 0);
106
+ __decorate([
107
+ (0, swagger_1.ApiPropertyOptional)({
108
+ description: "Other tax classification",
109
+ example: "Other Classification",
110
+ }),
111
+ (0, class_validator_1.ValidateIf)((o) => o.fedralTaxClassification === pdf_editor_1.FedralTaxClassification.Other),
112
+ (0, class_validator_1.IsOptional)(),
113
+ (0, class_validator_1.IsString)(),
114
+ __metadata("design:type", String)
115
+ ], W9FormDataDto.prototype, "otherTaxClassification", void 0);
116
+ __decorate([
117
+ (0, swagger_1.ApiPropertyOptional)({
118
+ description: "Indicates whether there are foreign partners",
119
+ example: true,
120
+ }),
121
+ (0, class_validator_1.ValidateIf)((o) => o.fedralTaxClassification === pdf_editor_1.FedralTaxClassification.Partnership ||
122
+ o.fedralTaxClassification === pdf_editor_1.FedralTaxClassification.TrustEstate ||
123
+ (o.fedralTaxClassification === pdf_editor_1.FedralTaxClassification.LLC &&
124
+ o.taxClassification === pdf_editor_1.TaxClassification.Partnership)),
125
+ (0, class_validator_1.IsNotEmpty)(),
126
+ (0, class_validator_1.IsBoolean)(),
127
+ __metadata("design:type", Boolean)
128
+ ], W9FormDataDto.prototype, "isForeignPartners", void 0);
129
+ __decorate([
130
+ (0, swagger_1.ApiPropertyOptional)({
131
+ description: "Exemption from backup withholding",
132
+ example: "Exempt",
133
+ }),
134
+ (0, class_validator_1.IsOptional)(),
135
+ (0, class_validator_1.IsString)(),
136
+ __metadata("design:type", String)
137
+ ], W9FormDataDto.prototype, "exemptionCode", void 0);
138
+ __decorate([
139
+ (0, swagger_1.ApiProperty)({ description: "Street address" }),
140
+ (0, class_validator_1.IsObject)(),
141
+ (0, class_validator_1.IsNotEmpty)(),
142
+ __metadata("design:type", AddressDto)
143
+ ], W9FormDataDto.prototype, "address", void 0);
144
+ __decorate([
145
+ (0, swagger_1.ApiPropertyOptional)({
146
+ description: "Account number for specific requester",
147
+ example: "123456789",
148
+ }),
149
+ (0, class_validator_1.IsOptional)(),
150
+ (0, class_validator_1.IsString)(),
151
+ __metadata("design:type", String)
152
+ ], W9FormDataDto.prototype, "accountNumber", void 0);
153
+ __decorate([
154
+ (0, swagger_1.ApiPropertyOptional)({
155
+ description: "SSN, required if individual",
156
+ example: "123-45-6789",
157
+ }),
158
+ (0, class_validator_1.ValidateIf)((o) => !o.ein),
159
+ (0, class_validator_1.IsOptional)(),
160
+ (0, class_validator_1.IsString)(),
161
+ __metadata("design:type", String)
162
+ ], W9FormDataDto.prototype, "ssn", void 0);
163
+ __decorate([
164
+ (0, swagger_1.ApiPropertyOptional)({
165
+ description: "EIN, required if business or entity",
166
+ example: "12-3456789",
167
+ }),
168
+ (0, class_validator_1.ValidateIf)((o) => !o.ssn),
169
+ (0, class_validator_1.IsOptional)(),
170
+ (0, class_validator_1.IsString)(),
171
+ __metadata("design:type", String)
172
+ ], W9FormDataDto.prototype, "ein", void 0);
173
+ __decorate([
174
+ (0, swagger_1.ApiProperty)({
175
+ description: "Base64-encoded signature image",
176
+ example: "data:image/png;base64,iVBORw0...",
177
+ }),
178
+ (0, class_validator_1.IsBase64)(),
179
+ (0, class_validator_1.IsNotEmpty)(),
180
+ __metadata("design:type", String)
181
+ ], W9FormDataDto.prototype, "signature", void 0);
182
+ __decorate([
183
+ (0, swagger_1.ApiProperty)({ description: "Date of signing", example: "2023-10-01" }),
184
+ (0, class_validator_1.IsDateString)(),
185
+ (0, class_validator_1.IsNotEmpty)(),
186
+ __metadata("design:type", String)
187
+ ], W9FormDataDto.prototype, "date", void 0);
188
+ __decorate([
189
+ (0, swagger_1.ApiPropertyOptional)({
190
+ description: "FATCA reporting code if applicable",
191
+ example: "A",
192
+ }),
193
+ (0, class_validator_1.IsOptional)(),
194
+ (0, class_validator_1.IsString)(),
195
+ __metadata("design:type", String)
196
+ ], W9FormDataDto.prototype, "fatcaCode", void 0);
197
+ __decorate([
198
+ (0, swagger_1.ApiPropertyOptional)({
199
+ description: "Details of the entity requesting the W-9 form",
200
+ }),
201
+ (0, class_validator_1.IsOptional)(),
202
+ (0, class_validator_1.IsObject)(),
203
+ __metadata("design:type", RequesterDto)
204
+ ], W9FormDataDto.prototype, "requester", void 0);
205
+ //# 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,qDAUyB;AACzB,sDAG+B;AAG/B,MAAa,UAAU;CA+BtB;AA/BD,gCA+BC;AA3BC;IAHC,IAAA,qBAAW,EAAC,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C;IACtE,IAAA,8BAAY,GAAE;IACd,IAAA,4BAAU,GAAE;;2CACA;AAQb;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,oCAAoC;QACjD,OAAO,EAAE,GAAG;KACb,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACQ;AAOnB;IALC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,+CAA+C;KAC7D,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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AAC;IACD,OAAO,iBAAiB,CAAC;AAC3B,CAAC,CAAC;AAKK,MAAM,MAAM,GAAG,KAAK,EAAE,IAAmB,EAAmB,EAAE;IACnE,MAAM,SAAS,GAAG,MAAM,cAAc,EAAE,CAAC;IACzC,MAAM,QAAQ,GAAa;QACzB,OAAO,EAAE,IAAA,sBAAa,EAAC,SAAS,CAAC;QACjC,OAAO,EAAE,CAAC,qBAAY,CAAC;KACxB,CAAC;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"}