@ottoai/documents 1.3.5 → 1.3.7
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/dist/create/pdf/united-states/form-1099/form.dto.d.ts +5 -1
- package/dist/create/pdf/united-states/form-1099/form.dto.js +17 -3
- package/dist/create/pdf/united-states/form-1099/form.dto.js.map +1 -1
- package/dist/create/pdf/united-states/form-1099/schema.json +5 -5
- package/dist/create/pdf/united-states/form-1099/template.pdf +0 -0
- package/dist/create/pdf/util/buffer.d.ts +2 -1
- package/dist/create/pdf/util/buffer.js +1 -1
- package/dist/create/pdf/util/buffer.js.map +1 -1
- package/dist/create/pdf/util/pdfme/schemas/text/uiRender.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
- package/dist/create/pdf/united-states/w9-form/form.dto.d.ts +0 -29
- package/dist/create/pdf/united-states/w9-form/form.dto.js +0 -141
- package/dist/create/pdf/united-states/w9-form/form.dto.js.map +0 -1
- package/dist/create/pdf/united-states/w9-form/index.d.ts +0 -2
- package/dist/create/pdf/united-states/w9-form/index.js +0 -105
- package/dist/create/pdf/united-states/w9-form/index.js.map +0 -1
- package/dist/create/pdf/united-states/w9-form/schema.json +0 -739
- /package/dist/create/pdf/united-states/{w9-form → form-w9}/template.pdf +0 -0
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export declare class PhoneDto {
|
|
2
|
+
phone: string;
|
|
3
|
+
country_code: number;
|
|
4
|
+
}
|
|
1
5
|
export declare class AddressDto {
|
|
2
6
|
city: string | null;
|
|
3
7
|
state: string | null;
|
|
@@ -13,7 +17,7 @@ export declare class Form1099Dto {
|
|
|
13
17
|
calendarYear: number;
|
|
14
18
|
payerName: string;
|
|
15
19
|
payerTin: string;
|
|
16
|
-
payerPhone:
|
|
20
|
+
payerPhone: PhoneDto;
|
|
17
21
|
payerAddress: AddressDto;
|
|
18
22
|
recipientName: string;
|
|
19
23
|
recipientTin: string;
|
|
@@ -9,8 +9,21 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.Form1099Dto = exports.AddressDto = void 0;
|
|
12
|
+
exports.Form1099Dto = exports.AddressDto = exports.PhoneDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
class PhoneDto {
|
|
15
|
+
}
|
|
16
|
+
exports.PhoneDto = PhoneDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.MinLength)(10),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], PhoneDto.prototype, "phone", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.Min)(1),
|
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], PhoneDto.prototype, "country_code", void 0);
|
|
14
27
|
class AddressDto {
|
|
15
28
|
}
|
|
16
29
|
exports.AddressDto = AddressDto;
|
|
@@ -76,8 +89,9 @@ __decorate([
|
|
|
76
89
|
__metadata("design:type", String)
|
|
77
90
|
], Form1099Dto.prototype, "payerTin", void 0);
|
|
78
91
|
__decorate([
|
|
79
|
-
(0, class_validator_1.
|
|
80
|
-
|
|
92
|
+
(0, class_validator_1.IsObject)(),
|
|
93
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
94
|
+
__metadata("design:type", PhoneDto)
|
|
81
95
|
], Form1099Dto.prototype, "payerPhone", void 0);
|
|
82
96
|
__decorate([
|
|
83
97
|
(0, class_validator_1.ValidateNested)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.dto.js","sourceRoot":"","sources":["../../../../../src/create/pdf/united-states/form-1099/form.dto.ts"],"names":[],"mappings":";;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AAC;;6CACzC;AAIjB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;8BACD,QAAQ;+CAAC;AAKrB;IAHC,IAAA,gCAAc,GAAE;IAChB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;8BACC,UAAU;iDAAC;AAGzB;IADC,IAAA,0BAAQ,GAAE;;kDACW;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,CAAC,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;;iDACrC;AAKrB;IAHC,IAAA,gCAAc,GAAE;IAChB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;8BACK,UAAU;qDAAC;AAI7B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;4DACyB;AAGhC;IADC,IAAA,2BAAS,GAAE;;wDACiB;AAI7B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;6DAC0B;AAIjC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;qDACkB;AAIzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;gDACa;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;gDACa"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"height": 5,
|
|
11
11
|
"rotate": 0,
|
|
12
12
|
"opacity": 1,
|
|
13
|
-
"required":
|
|
13
|
+
"required": false,
|
|
14
14
|
"readOnly": false
|
|
15
15
|
},
|
|
16
16
|
{
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"height": 5,
|
|
22
22
|
"rotate": 0,
|
|
23
23
|
"opacity": 1,
|
|
24
|
-
"required":
|
|
24
|
+
"required": false,
|
|
25
25
|
"readOnly": false
|
|
26
26
|
},
|
|
27
27
|
{
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
"height": 5,
|
|
319
319
|
"rotate": 0,
|
|
320
320
|
"opacity": 1,
|
|
321
|
-
"required":
|
|
321
|
+
"required": false,
|
|
322
322
|
"readOnly": false
|
|
323
323
|
},
|
|
324
324
|
{
|
|
@@ -616,7 +616,7 @@
|
|
|
616
616
|
"height": 5,
|
|
617
617
|
"rotate": 0,
|
|
618
618
|
"opacity": 1,
|
|
619
|
-
"required":
|
|
619
|
+
"required": false,
|
|
620
620
|
"readOnly": false
|
|
621
621
|
},
|
|
622
622
|
{
|
|
@@ -627,7 +627,7 @@
|
|
|
627
627
|
"height": 5,
|
|
628
628
|
"rotate": 0,
|
|
629
629
|
"opacity": 1,
|
|
630
|
-
"required":
|
|
630
|
+
"required": false,
|
|
631
631
|
"readOnly": false
|
|
632
632
|
},
|
|
633
633
|
{
|
|
Binary file
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AddressDto } from "../united-states";
|
|
2
|
+
import { PhoneDto } from "../united-states/form-1099/form.dto";
|
|
2
3
|
export declare const toArrayBuffer: (buffer: Uint8Array) => ArrayBuffer;
|
|
3
4
|
export declare const toBuffer: (ab: Uint8Array) => Buffer;
|
|
4
5
|
export declare const formatAddress: (address: AddressDto) => string;
|
|
5
|
-
export declare const formatPayerDetails: (name: string, address: AddressDto, phone:
|
|
6
|
+
export declare const formatPayerDetails: (name: string, address: AddressDto, phone: PhoneDto) => string;
|
|
@@ -44,7 +44,7 @@ const formatPayerDetails = (name, address, phone) => {
|
|
|
44
44
|
}
|
|
45
45
|
formattedDetails += `${city}, ${state}, ${country} ${postal_code}\n`;
|
|
46
46
|
if (phone) {
|
|
47
|
-
formattedDetails +=
|
|
47
|
+
formattedDetails += `+${phone.country_code} ${phone.phone}\n`;
|
|
48
48
|
}
|
|
49
49
|
return formattedDetails;
|
|
50
50
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buffer.js","sourceRoot":"","sources":["../../../../src/create/pdf/util/buffer.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"buffer.js","sourceRoot":"","sources":["../../../../src/create/pdf/util/buffer.ts"],"names":[],"mappings":";;;AAGO,MAAM,aAAa,GAAG,CAAC,MAAkB,EAAe,EAAE;IAC/D,MAAM,EAAE,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC1C,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;IAEhC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;QACvC,IAAI,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AARW,QAAA,aAAa,iBAQxB;AAEK,MAAM,QAAQ,GAAG,CAAC,EAAc,EAAU,EAAE;IACjD,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IACxC,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;IAEhC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;QACpC,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AARW,QAAA,QAAQ,YAQnB;AAEK,MAAM,aAAa,GAAG,CAAC,OAAmB,EAAE,EAAE;IACnD,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IACxB,MAAM,EACJ,cAAc,EACd,cAAc,EACd,IAAI,EACJ,KAAK,EACL,OAAO,GAAG,IAAI,EACd,WAAW,GACZ,GAAG,OAAO,CAAC;IAEZ,IAAI,gBAAgB,GAAG,EAAE,CAAC;IAC1B,IAAI,cAAc,EAAE,CAAC;QACnB,gBAAgB,IAAI,GAAG,cAAc,IAAI,CAAC;IAC5C,CAAC;IACD,IAAI,cAAc,EAAE,CAAC;QACnB,gBAAgB,IAAI,GAAG,cAAc,IAAI,CAAC;IAC5C,CAAC;IACD,gBAAgB,IAAI,GAAG,IAAI,KAAK,KAAK,KAAK,OAAO,IAAI,WAAW,IAAI,CAAC;IACrE,OAAO,gBAAgB,CAAC;AAC1B,CAAC,CAAC;AApBW,QAAA,aAAa,iBAoBxB;AAEK,MAAM,kBAAkB,GAAG,CAChC,IAAY,EACZ,OAAmB,EACnB,KAAe,EACf,EAAE;IACF,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IACxB,MAAM,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;IAE7E,IAAI,gBAAgB,GAAG,GAAG,IAAI,IAAI,CAAC;IAEnC,IAAI,cAAc,EAAE,CAAC;QACnB,gBAAgB,IAAI,GAAG,cAAc,IAAI,CAAC;IAC5C,CAAC;IACD,gBAAgB,IAAI,GAAG,IAAI,KAAK,KAAK,KAAK,OAAO,IAAI,WAAW,IAAI,CAAC;IACrE,IAAI,KAAK,EAAE,CAAC;QACV,gBAAgB,IAAI,IAAI,KAAK,CAAC,YAAY,IAAI,KAAK,CAAC,KAAK,IAAI,CAAC;IAChE,CAAC;IACD,OAAO,gBAAgB,CAAC;AAC1B,CAAC,CAAC;AAlBW,QAAA,kBAAkB,sBAkB7B"}
|
|
@@ -3,7 +3,7 @@ import type { TextSchema } from './types';
|
|
|
3
3
|
export declare const uiRender: (arg: UIRenderProps<TextSchema>) => Promise<void>;
|
|
4
4
|
export declare const buildStyledTextContainer: (arg: UIRenderProps<TextSchema>, value: string) => Promise<HTMLDivElement>;
|
|
5
5
|
export declare const makeElementPlainTextContentEditable: (element: HTMLElement) => void;
|
|
6
|
-
export declare const mapVerticalAlignToFlex: (verticalAlignmentValue: string | undefined) => "center" | "flex-
|
|
6
|
+
export declare const mapVerticalAlignToFlex: (verticalAlignmentValue: string | undefined) => "center" | "flex-end" | "flex-start";
|
|
7
7
|
export declare const getBackgroundColor: (value: string, schema: {
|
|
8
8
|
backgroundColor?: string;
|
|
9
9
|
}) => string;
|