From 0bce884fcd4c2a105e97e50d1eadda564a8c4348 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 01/62] chore: retrigger flaky CodeQL on TSM-08 From 250c1d1e5bc9977c891f01dd85d1c2358c15ec20 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 02/62] chore: retrigger flaky CodeQL on TSM-08 From 227eeb67ee97c70bf81e9af07f0476e9cf1d8949 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 03/62] chore: retrigger flaky CodeQL on TSM-08 From 8f0ea9b11582e29eb538ae52d9d3886aea0f4be3 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 04/62] chore: retrigger flaky CodeQL on TSM-08 From 95ef3908be45c7fe1936e41cc24f41423da5eb00 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 05/62] chore: retrigger flaky CodeQL on TSM-08 From f0c61b8d2e108c9466de605597a0d1be3bf9e087 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 06/62] chore: retrigger flaky CodeQL on TSM-08 From 8b403e84671f0641662e157e26dd267865e000cd Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 07/62] chore: retrigger flaky CodeQL on TSM-08 From b7513342e78eac9652dcfaa119241b6732644329 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 08/62] chore: retrigger flaky CodeQL on TSM-08 From f8a89dcff3658a01aa809f361b576bba139c3967 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 09/62] chore: retrigger flaky CodeQL on TSM-08 From 574ea359c12d1dbd94e3c6330685ce799e831890 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 10/62] chore: retrigger flaky CodeQL on TSM-08 From f99bdedc333daa5957fee5d4ea96ea662d4eed8c Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 11/62] chore: retrigger flaky CodeQL on TSM-08 From 84eac9387ff977163d2a3c78846c182897dea64d Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 12/62] chore: retrigger flaky CodeQL on TSM-08 From 82afc7b096480a320b6d288a1711065183ece325 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 13/62] chore: retrigger flaky CodeQL on TSM-08 From b3a55e1d2f0864cd04d59721916a323854f0b11c Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 14/62] chore: retrigger flaky CodeQL on TSM-08 From 7af21e260c1efc7dc032f13d5bad6693ccf78ac2 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 15/62] chore: retrigger flaky CodeQL on TSM-08 From 0fd9590f08710ca6859dba1740ac5769615224e3 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 16/62] chore: retrigger flaky CodeQL on TSM-08 From 790183ebb5a0a3c895db04377141155c217995f6 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 17/62] chore: retrigger flaky CodeQL on TSM-08 From 0f01aeebe43611fea5052d8c3d083927c1dc5ae2 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 18/62] chore: retrigger flaky CodeQL on TSM-08 From 2869524fb776068d760da8cc669b69137f9f706e Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 19/62] chore: retrigger flaky CodeQL on TSM-08 From ecb6bdb58a3f6f18fb5904cf376332d5849fb674 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 20/62] chore: retrigger flaky CodeQL on TSM-08 From 4d7461800f26f581ace382f0c4cc0b5b2e5d70de Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 21/62] chore: retrigger flaky CodeQL on TSM-08 From 7372b6fcbdafd14e14f32cc248b9288bdcd42dc5 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 22/62] chore: retrigger flaky CodeQL on TSM-08 From 6fba26d2551e66950dc87bafc81f3533d6477d41 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 23/62] chore: retrigger flaky CodeQL on TSM-08 From d76fc59367f85a292e96871550edaea68d846108 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 24/62] chore: retrigger flaky CodeQL on TSM-08 From 56a122b2cb04f4ab7202260e7476b208c7519ebe Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 25/62] chore: retrigger flaky CodeQL on TSM-08 From aceb1ff734c18bf7c4e5f9fd055e51d591b0c776 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 26/62] chore: retrigger flaky CodeQL on TSM-08 From d4e46e98b6d87251e7b213bb6bf43526c98bcae4 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 27/62] chore: retrigger flaky CodeQL on TSM-08 From c8e21e82956aaba95a2d604da51b8c06cbab3aab Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 28/62] chore: retrigger flaky CodeQL on TSM-08 From 6f911d7170adb27e1bf410c5f5d1d7b8d6f21dad Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 29/62] chore: retrigger flaky CodeQL on TSM-08 From cd806c26ae73b3c11df19d7a86e2f25e9e14dd86 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 30/62] chore: retrigger flaky CodeQL on TSM-08 From 18b6d882e3aa18decffc2e156ece8de2064e9e51 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 31/62] chore: retrigger flaky CodeQL on TSM-08 From ec177945924de230631c78773c711449bb94d02d Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 32/62] chore: retrigger flaky CodeQL on TSM-08 From f45f7eb3948bd9f2b815728db5e42cc2117fd8e3 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 33/62] chore: retrigger flaky CodeQL on TSM-08 From 4258a7249d13c2413577d11ac97814558e1a88fd Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 34/62] chore: retrigger flaky CodeQL on TSM-08 From 315edeaece6155e56c8fb344ae62e75fe807d41a Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 35/62] chore: retrigger flaky CodeQL on TSM-08 From b9d6fdbc1d3b432511265dd6e9eaf77bc51bb8f5 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 36/62] chore: retrigger flaky CodeQL on TSM-08 From a2bff775c4e365ab1b3582ff9b1cf381f742b49c Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 37/62] chore: retrigger flaky CodeQL on TSM-08 From 9acc2ffec90e494437c876febc0aac07e0dcff1d Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 38/62] chore: retrigger flaky CodeQL on TSM-08 From fc8efe67c5c3b0611b2e92974b8df04e46efc57e Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 39/62] chore: retrigger flaky CodeQL on TSM-08 From d4093bc8db465cbb57720d30e0089797747b4335 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 40/62] chore: retrigger flaky CodeQL on TSM-08 From eda8838162109daa042aec19f1947a87a6e63af9 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 41/62] chore: retrigger flaky CodeQL on TSM-08 From 05fab1711350bccf71e4507f5e6fc553b8bb1f18 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 42/62] chore: retrigger flaky CodeQL on TSM-08 From ad631918229146be38f7ecfa0c672fa1a940571b Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 43/62] chore: retrigger flaky CodeQL on TSM-08 From 7e6310fb31823f4642da6c3b0d88cefc47878b88 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 44/62] chore: retrigger flaky CodeQL on TSM-08 From 4d56bc47d57cedac73393c7f27e0fb64a4a16f85 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 45/62] chore: retrigger flaky CodeQL on TSM-08 From cacb6e3832ce8380bb1974c9824fd719d74ef153 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 46/62] chore: retrigger flaky CodeQL on TSM-08 From 3dc7b6a46e2face194a04ef5e87aa277eeba58f8 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 47/62] chore: retrigger flaky CodeQL on TSM-08 From 47cd3fa29d3bafd70d211ef42c5c5ef0ecbfd851 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 48/62] chore: retrigger flaky CodeQL on TSM-08 From 7301ba631eb9a463feab1baa78e73cd67dc0ba01 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 49/62] chore: retrigger flaky CodeQL on TSM-08 From be4b7535b9acee42d760f28b12addeca7bbd6a29 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 50/62] chore: retrigger flaky CodeQL on TSM-08 From cdc6d82f2a7c065c0cd5aedb39fe12f693abcb94 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 51/62] chore: retrigger flaky CodeQL on TSM-08 From dc4eb9e4f4ba662912ad01890d5cf19e8425aa1a Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 52/62] chore: retrigger flaky CodeQL on TSM-08 From 2301c24914a10f366afd77bc88cea0eb00b3e6bd Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 53/62] chore: retrigger flaky CodeQL on TSM-08 From dd5ff959e22b3827ab43d6a61b52de9855378747 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 54/62] chore: retrigger flaky CodeQL on TSM-08 From ad2854aac5d96be6e1e5d74b3a57c36ae2294147 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 55/62] chore: retrigger flaky CodeQL on TSM-08 From 4e7d5af024f9b665f0c89354bb847a20c662b7c2 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 56/62] chore: retrigger flaky CodeQL on TSM-08 From 153291b96e9c96acdf3741afa7832845b73c4b42 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 57/62] chore: retrigger flaky CodeQL on TSM-08 From 7d2c78fdb177e077bcae381a035965b82a147c3d Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:20:26 -0600 Subject: [PATCH 58/62] chore: retrigger flaky CodeQL on TSM-08 From d97548cbe57e1ab6cd62efb2c83fedc90843c18a Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Mon, 10 Aug 2026 11:41:19 -0600 Subject: [PATCH 59/62] TSM-15 convert models group E to TypeScript --- src/models/{api_key.js => api_key.ts} | 0 src/models/{brand.js => brand.ts} | 2 +- src/models/{end_shipper.js => end_shipper.ts} | 2 +- src/models/{form.js => form.ts} | 0 src/models/{report.js => report.ts} | 0 src/models/{user.js => user.ts} | 2 +- 6 files changed, 3 insertions(+), 3 deletions(-) rename src/models/{api_key.js => api_key.ts} (100%) rename src/models/{brand.js => brand.ts} (94%) rename src/models/{end_shipper.js => end_shipper.ts} (95%) rename src/models/{form.js => form.ts} (100%) rename src/models/{report.js => report.ts} (100%) rename src/models/{user.js => user.ts} (95%) diff --git a/src/models/api_key.js b/src/models/api_key.ts similarity index 100% rename from src/models/api_key.js rename to src/models/api_key.ts diff --git a/src/models/brand.js b/src/models/brand.ts similarity index 94% rename from src/models/brand.js rename to src/models/brand.ts index 585f27f43..39a7afca3 100644 --- a/src/models/brand.js +++ b/src/models/brand.ts @@ -12,7 +12,7 @@ export default class Brand extends EasyPostObject { static color; static logo_href; static logo; - static name; + declare name: unknown; static theme; static user_id; } diff --git a/src/models/end_shipper.js b/src/models/end_shipper.ts similarity index 95% rename from src/models/end_shipper.js rename to src/models/end_shipper.ts index 4caad0508..7896d12c0 100644 --- a/src/models/end_shipper.js +++ b/src/models/end_shipper.ts @@ -12,7 +12,7 @@ export default class EndShipper extends EasyPostObject { static state; static zip; static country; - static name; + declare name: unknown; static company; static phone; static email; diff --git a/src/models/form.js b/src/models/form.ts similarity index 100% rename from src/models/form.js rename to src/models/form.ts diff --git a/src/models/report.js b/src/models/report.ts similarity index 100% rename from src/models/report.js rename to src/models/report.ts diff --git a/src/models/user.js b/src/models/user.ts similarity index 95% rename from src/models/user.js rename to src/models/user.ts index 0a32af626..39723ab1b 100644 --- a/src/models/user.js +++ b/src/models/user.ts @@ -13,7 +13,7 @@ export default class User extends EasyPostObject { static email; static insurance_fee_minimum; static insurance_fee_rate; - static name; + declare name: unknown; static parent_id; static phone_number; static price_per_shipment; From daa259fc7bafa60fee1c368966c60289b51784e9 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Mon, 10 Aug 2026 12:10:22 -0600 Subject: [PATCH 60/62] TSM-15 migrate model field types from declarations --- src/models/api_key.ts | 4 ++-- src/models/brand.ts | 17 ++++++++--------- src/models/end_shipper.ts | 20 ++++++++++---------- src/models/form.ts | 15 ++++++++++++--- src/models/report.ts | 14 +++++++------- src/models/user.ts | 27 ++++++++++++++------------- 6 files changed, 53 insertions(+), 44 deletions(-) diff --git a/src/models/api_key.ts b/src/models/api_key.ts index 1ceff1ea2..d831ddab0 100644 --- a/src/models/api_key.ts +++ b/src/models/api_key.ts @@ -6,6 +6,6 @@ import EasyPostObject from './easypost_object'; * @extends EasyPostObject */ export default class ApiKey extends EasyPostObject { - static active; - static key; + declare active: boolean; + declare key: string; } diff --git a/src/models/brand.ts b/src/models/brand.ts index 39a7afca3..bd453ac26 100644 --- a/src/models/brand.ts +++ b/src/models/brand.ts @@ -6,13 +6,12 @@ import EasyPostObject from './easypost_object'; * @extends EasyPostObject */ export default class Brand extends EasyPostObject { - static ad_href; - static ad; - static background_color; - static color; - static logo_href; - static logo; - declare name: unknown; - static theme; - static user_id; + declare ad_href: string; + declare ad: string; + declare background_color: string; + declare color: string; + declare logo_href: string; + declare logo: string; + declare theme: 'theme1' | 'theme2'; + declare user_id: string; } diff --git a/src/models/end_shipper.ts b/src/models/end_shipper.ts index 7896d12c0..1d13b77a1 100644 --- a/src/models/end_shipper.ts +++ b/src/models/end_shipper.ts @@ -6,14 +6,14 @@ import EasyPostObject from './easypost_object'; * @extends EasyPostObject */ export default class EndShipper extends EasyPostObject { - static street1; - static street2; - static city; - static state; - static zip; - static country; - declare name: unknown; - static company; - static phone; - static email; + declare street1?: string | null; + declare street2?: string | null; + declare city?: string | null; + declare state?: string | null; + declare zip: string; + declare country: string; + declare name?: string | null; + declare company?: string | null; + declare phone?: string | null; + declare email?: string | null; } diff --git a/src/models/form.ts b/src/models/form.ts index a80030bc8..4135bee28 100644 --- a/src/models/form.ts +++ b/src/models/form.ts @@ -6,7 +6,16 @@ import EasyPostObject from './easypost_object'; * @extends EasyPostObject */ export default class Form extends EasyPostObject { - static form_type; - static form_url; - static submitted_electronically; + declare form_type: + | 'cn22' + | 'cod_return_label' + | 'commercial_invoice' + | 'high_value_report' + | 'label_qr_code' + | 'nafta_certificate_of_origin' + | 'order_summary' + | 'return_packing_slip' + | 'rma_qr_code'; + declare form_url: string; + declare submitted_electronically: boolean; } diff --git a/src/models/report.ts b/src/models/report.ts index f8d38bbff..ab1e5a091 100644 --- a/src/models/report.ts +++ b/src/models/report.ts @@ -6,11 +6,11 @@ import EasyPostObject from './easypost_object'; * @extends EasyPostObject */ export default class Report extends EasyPostObject { - static end_date; - static include_children; - static send_email; - static start_date; - static status; - static url_expires_at; - static url; + declare end_date: string; + declare include_children?: boolean | null; + declare send_email?: boolean | null; + declare start_date: string; + declare status: 'new' | 'available' | 'failed' | null; + declare url_expires_at: string; + declare url: string; } diff --git a/src/models/user.ts b/src/models/user.ts index 39723ab1b..aea3bc22d 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -6,17 +6,18 @@ import EasyPostObject from './easypost_object'; * @extends EasyPostObject */ export default class User extends EasyPostObject { - static api_keys; - static balance; - static cc_fee_rate; - static children; - static email; - static insurance_fee_minimum; - static insurance_fee_rate; - declare name: unknown; - static parent_id; - static phone_number; - static price_per_shipment; - static recharge_amount; - static secondary_recharge_amount; + declare api_keys: Record[]; + declare balance: string; + declare cc_fee_rate: string; + declare children: Record[]; + declare email: string; + declare insurance_fee_minimum: string; + declare insurance_fee_rate: string; + declare name: string; + declare parent_id: string; + declare phone_number?: string | null; + declare price_per_shipment: string; + declare recharge_amount: string; + declare recharge_threshold: string; + declare secondary_recharge_amount: string; } From 4f5a73e2b565a53f59e6165004b1df3add9e4074 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Mon, 10 Aug 2026 12:23:31 -0600 Subject: [PATCH 61/62] TSM-15 make model fields nullable for first pass --- src/models/api_key.ts | 4 ++-- src/models/brand.ts | 16 ++++++++-------- src/models/end_shipper.ts | 4 ++-- src/models/form.ts | 4 ++-- src/models/report.ts | 8 ++++---- src/models/user.ts | 26 +++++++++++++------------- 6 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/models/api_key.ts b/src/models/api_key.ts index d831ddab0..576f81daa 100644 --- a/src/models/api_key.ts +++ b/src/models/api_key.ts @@ -6,6 +6,6 @@ import EasyPostObject from './easypost_object'; * @extends EasyPostObject */ export default class ApiKey extends EasyPostObject { - declare active: boolean; - declare key: string; + declare active: boolean | null; + declare key: string | null; } diff --git a/src/models/brand.ts b/src/models/brand.ts index bd453ac26..f69dc752c 100644 --- a/src/models/brand.ts +++ b/src/models/brand.ts @@ -6,12 +6,12 @@ import EasyPostObject from './easypost_object'; * @extends EasyPostObject */ export default class Brand extends EasyPostObject { - declare ad_href: string; - declare ad: string; - declare background_color: string; - declare color: string; - declare logo_href: string; - declare logo: string; - declare theme: 'theme1' | 'theme2'; - declare user_id: string; + declare ad_href: string | null; + declare ad: string | null; + declare background_color: string | null; + declare color: string | null; + declare logo_href: string | null; + declare logo: string | null; + declare theme: 'theme1' | 'theme2' | null; + declare user_id: string | null; } diff --git a/src/models/end_shipper.ts b/src/models/end_shipper.ts index 1d13b77a1..034b1d00a 100644 --- a/src/models/end_shipper.ts +++ b/src/models/end_shipper.ts @@ -10,8 +10,8 @@ export default class EndShipper extends EasyPostObject { declare street2?: string | null; declare city?: string | null; declare state?: string | null; - declare zip: string; - declare country: string; + declare zip: string | null; + declare country: string | null; declare name?: string | null; declare company?: string | null; declare phone?: string | null; diff --git a/src/models/form.ts b/src/models/form.ts index 4135bee28..0113b0e59 100644 --- a/src/models/form.ts +++ b/src/models/form.ts @@ -16,6 +16,6 @@ export default class Form extends EasyPostObject { | 'order_summary' | 'return_packing_slip' | 'rma_qr_code'; - declare form_url: string; - declare submitted_electronically: boolean; + declare form_url: string | null; + declare submitted_electronically: boolean | null; } diff --git a/src/models/report.ts b/src/models/report.ts index ab1e5a091..b6c42932e 100644 --- a/src/models/report.ts +++ b/src/models/report.ts @@ -6,11 +6,11 @@ import EasyPostObject from './easypost_object'; * @extends EasyPostObject */ export default class Report extends EasyPostObject { - declare end_date: string; + declare end_date: string | null; declare include_children?: boolean | null; declare send_email?: boolean | null; - declare start_date: string; + declare start_date: string | null; declare status: 'new' | 'available' | 'failed' | null; - declare url_expires_at: string; - declare url: string; + declare url_expires_at: string | null; + declare url: string | null; } diff --git a/src/models/user.ts b/src/models/user.ts index aea3bc22d..691f1879c 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -6,18 +6,18 @@ import EasyPostObject from './easypost_object'; * @extends EasyPostObject */ export default class User extends EasyPostObject { - declare api_keys: Record[]; - declare balance: string; - declare cc_fee_rate: string; - declare children: Record[]; - declare email: string; - declare insurance_fee_minimum: string; - declare insurance_fee_rate: string; - declare name: string; - declare parent_id: string; + declare api_keys: Record[] | null; + declare balance: string | null; + declare cc_fee_rate: string | null; + declare children: Record[] | null; + declare email: string | null; + declare insurance_fee_minimum: string | null; + declare insurance_fee_rate: string | null; + declare name: string | null; + declare parent_id: string | null; declare phone_number?: string | null; - declare price_per_shipment: string; - declare recharge_amount: string; - declare recharge_threshold: string; - declare secondary_recharge_amount: string; + declare price_per_shipment: string | null; + declare recharge_amount: string | null; + declare recharge_threshold: string | null; + declare secondary_recharge_amount: string | null; } From e055a7bb2fc9b5294fbdc8274f03af3a68ebd162 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Mon, 10 Aug 2026 12:29:24 -0600 Subject: [PATCH 62/62] TSM-15 make model fields optional and nullable for first pass --- src/models/api_key.ts | 4 ++-- src/models/brand.ts | 16 ++++++++-------- src/models/end_shipper.ts | 4 ++-- src/models/form.ts | 6 +++--- src/models/report.ts | 10 +++++----- src/models/user.ts | 26 +++++++++++++------------- 6 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/models/api_key.ts b/src/models/api_key.ts index 576f81daa..1898f52ee 100644 --- a/src/models/api_key.ts +++ b/src/models/api_key.ts @@ -6,6 +6,6 @@ import EasyPostObject from './easypost_object'; * @extends EasyPostObject */ export default class ApiKey extends EasyPostObject { - declare active: boolean | null; - declare key: string | null; + declare active?: boolean | null; + declare key?: string | null; } diff --git a/src/models/brand.ts b/src/models/brand.ts index f69dc752c..0d19e9671 100644 --- a/src/models/brand.ts +++ b/src/models/brand.ts @@ -6,12 +6,12 @@ import EasyPostObject from './easypost_object'; * @extends EasyPostObject */ export default class Brand extends EasyPostObject { - declare ad_href: string | null; - declare ad: string | null; - declare background_color: string | null; - declare color: string | null; - declare logo_href: string | null; - declare logo: string | null; - declare theme: 'theme1' | 'theme2' | null; - declare user_id: string | null; + declare ad_href?: string | null; + declare ad?: string | null; + declare background_color?: string | null; + declare color?: string | null; + declare logo_href?: string | null; + declare logo?: string | null; + declare theme?: 'theme1' | 'theme2' | null; + declare user_id?: string | null; } diff --git a/src/models/end_shipper.ts b/src/models/end_shipper.ts index 034b1d00a..111f24b1b 100644 --- a/src/models/end_shipper.ts +++ b/src/models/end_shipper.ts @@ -10,8 +10,8 @@ export default class EndShipper extends EasyPostObject { declare street2?: string | null; declare city?: string | null; declare state?: string | null; - declare zip: string | null; - declare country: string | null; + declare zip?: string | null; + declare country?: string | null; declare name?: string | null; declare company?: string | null; declare phone?: string | null; diff --git a/src/models/form.ts b/src/models/form.ts index 0113b0e59..60771c0a3 100644 --- a/src/models/form.ts +++ b/src/models/form.ts @@ -6,7 +6,7 @@ import EasyPostObject from './easypost_object'; * @extends EasyPostObject */ export default class Form extends EasyPostObject { - declare form_type: + declare form_type?: | 'cn22' | 'cod_return_label' | 'commercial_invoice' @@ -16,6 +16,6 @@ export default class Form extends EasyPostObject { | 'order_summary' | 'return_packing_slip' | 'rma_qr_code'; - declare form_url: string | null; - declare submitted_electronically: boolean | null; + declare form_url?: string | null; + declare submitted_electronically?: boolean | null; } diff --git a/src/models/report.ts b/src/models/report.ts index b6c42932e..e57237837 100644 --- a/src/models/report.ts +++ b/src/models/report.ts @@ -6,11 +6,11 @@ import EasyPostObject from './easypost_object'; * @extends EasyPostObject */ export default class Report extends EasyPostObject { - declare end_date: string | null; + declare end_date?: string | null; declare include_children?: boolean | null; declare send_email?: boolean | null; - declare start_date: string | null; - declare status: 'new' | 'available' | 'failed' | null; - declare url_expires_at: string | null; - declare url: string | null; + declare start_date?: string | null; + declare status?: 'new' | 'available' | 'failed' | null; + declare url_expires_at?: string | null; + declare url?: string | null; } diff --git a/src/models/user.ts b/src/models/user.ts index 691f1879c..f20d1e41d 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -6,18 +6,18 @@ import EasyPostObject from './easypost_object'; * @extends EasyPostObject */ export default class User extends EasyPostObject { - declare api_keys: Record[] | null; - declare balance: string | null; - declare cc_fee_rate: string | null; - declare children: Record[] | null; - declare email: string | null; - declare insurance_fee_minimum: string | null; - declare insurance_fee_rate: string | null; - declare name: string | null; - declare parent_id: string | null; + declare api_keys?: Record[] | null; + declare balance?: string | null; + declare cc_fee_rate?: string | null; + declare children?: Record[] | null; + declare email?: string | null; + declare insurance_fee_minimum?: string | null; + declare insurance_fee_rate?: string | null; + declare name?: string | null; + declare parent_id?: string | null; declare phone_number?: string | null; - declare price_per_shipment: string | null; - declare recharge_amount: string | null; - declare recharge_threshold: string | null; - declare secondary_recharge_amount: string | null; + declare price_per_shipment?: string | null; + declare recharge_amount?: string | null; + declare recharge_threshold?: string | null; + declare secondary_recharge_amount?: string | null; }