ad2app-lib 1.15.0 → 1.17.0

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.
@@ -91,7 +91,7 @@ exports.PRIVACY_SECTIONS = [
91
91
  items: [
92
92
  { text: '**Account data:** for the duration of your account plus a 30-day recovery window after you delete it. During the window your account is deactivated and your data (profile, scheduled posts, drafts, settings, analytics history) is held solely so the account can be restored if the deletion was a mistake. After 30 days a scheduled job permanently and irreversibly purges it. You may request immediate permanent deletion, waiving the recovery window, by explicitly stating this in a request to {EMAIL}.' },
93
93
  { text: '**What is immediate and irreversible even during the recovery window:** when you delete your account, we immediately disconnect your connected social accounts and revoke the associated access at our publishing processor Zernio. This is not undone by recovering your account; if you restore your account within the 30 days, your ad2app data comes back but you must reconnect your social platforms yourself.' },
94
- { text: '**What account deletion does not do:** deleting your ad2app account does not delete the posts you already published to your social media platforms; that content lives on those platforms under their terms, and you manage or delete it there. Our deletion and revocation requests to Zernio (including removal of the profile container Zernio maintains for your account) are sent immediately; if a request fails we retry it until it succeeds, so completion on Zernio\'s side can lag briefly behind your deletion. Once our disconnect and deletion requests reach Zernio, our data processing agreement with them requires deletion of all copies within 10 business days of the cessation of the relevant services, with written certification of completion.' },
94
+ { text: '**What account deletion does not do:** deleting your ad2app account does not delete the posts you already published to your social media platforms; that content lives on those platforms under their terms, and you manage or delete it there. Our deletion and revocation requests to Zernio (including removal of the profile container Zernio maintains for your account) are sent immediately; if a request fails we retry it, so completion on Zernio\'s side can lag briefly behind your deletion. Separately, at the end of our overall relationship with Zernio, our data processing agreement requires them to delete all remaining copies within 10 business days of the cessation of services, with written certification of completion.' },
95
95
  { text: '**Post content, scheduled posts, and published-post analytics:** retained for the duration of your account and deleted with your account data (subject to the 30-day recovery window above). Anonymised aggregated analytics may be retained indefinitely.' },
96
96
  { text: '**OAuth tokens:** for platforms where Zernio holds your tokens on our behalf, disconnecting an account or deleting your ad2app account triggers an immediate disconnect and revocation request to Zernio (with retries on failure, as above). Any tokens we hold ourselves are deleted immediately on disconnect or account deletion, with no recovery window.' },
97
97
  { text: '**Inbox data (DMs and comments):** retained for the duration of your account; deleted with your account data (subject to the 30-day recovery window).' },
@@ -9,7 +9,15 @@ export declare enum SchedulingPostStatus {
9
9
  SCHEDULED = "scheduled",
10
10
  PUBLISHED = "published",
11
11
  FAILED = "failed",
12
- PARTIAL = "partial"
12
+ PARTIAL = "partial",
13
+ /**
14
+ * The publisher accepted the post (an id exists) but its outcome could not
15
+ * be confirmed inline — a gateway timeout, or a 409 whose live status
16
+ * couldn't be fetched immediately (AD2-1153). Distinct from SCHEDULED: a
17
+ * PUBLISHING post may already be publishing server-side and must not be
18
+ * treated as still-editable.
19
+ */
20
+ PUBLISHING = "publishing"
13
21
  }
14
22
  export type SchedulingPlatformStatusMap = Record<string, 'scheduled' | 'published' | 'failed'>;
15
23
  export declare class SchedulingPlatformTargetDTO {
@@ -15,6 +15,14 @@ var SchedulingPostStatus;
15
15
  SchedulingPostStatus["PUBLISHED"] = "published";
16
16
  SchedulingPostStatus["FAILED"] = "failed";
17
17
  SchedulingPostStatus["PARTIAL"] = "partial";
18
+ /**
19
+ * The publisher accepted the post (an id exists) but its outcome could not
20
+ * be confirmed inline — a gateway timeout, or a 409 whose live status
21
+ * couldn't be fetched immediately (AD2-1153). Distinct from SCHEDULED: a
22
+ * PUBLISHING post may already be publishing server-side and must not be
23
+ * treated as still-editable.
24
+ */
25
+ SchedulingPostStatus["PUBLISHING"] = "publishing";
18
26
  })(SchedulingPostStatus || (exports.SchedulingPostStatus = SchedulingPostStatus = {}));
19
27
  // ── SchedulingPlatformTargetDTO ───────────────────────────────────────────────
20
28
  class SchedulingPlatformTargetDTO {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ad2app-lib",
3
- "version": "1.15.0",
3
+ "version": "1.17.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -43,7 +43,8 @@
43
43
  },
44
44
  "scripts": {
45
45
  "build": "npx tsc",
46
- "test": "node --import tsx --test $(find src -name '*.test.ts')"
46
+ "test": "node --import tsx --test $(find src -name '*.test.ts')",
47
+ "prepare": "npm run build"
47
48
  },
48
49
  "keywords": [],
49
50
  "author": "Maciej Górski@ad2.app",
@@ -90,7 +90,7 @@ export const PRIVACY_SECTIONS: LegalSection[] = [
90
90
  items: [
91
91
  { text: '**Account data:** for the duration of your account plus a 30-day recovery window after you delete it. During the window your account is deactivated and your data (profile, scheduled posts, drafts, settings, analytics history) is held solely so the account can be restored if the deletion was a mistake. After 30 days a scheduled job permanently and irreversibly purges it. You may request immediate permanent deletion, waiving the recovery window, by explicitly stating this in a request to {EMAIL}.' },
92
92
  { text: '**What is immediate and irreversible even during the recovery window:** when you delete your account, we immediately disconnect your connected social accounts and revoke the associated access at our publishing processor Zernio. This is not undone by recovering your account; if you restore your account within the 30 days, your ad2app data comes back but you must reconnect your social platforms yourself.' },
93
- { text: '**What account deletion does not do:** deleting your ad2app account does not delete the posts you already published to your social media platforms; that content lives on those platforms under their terms, and you manage or delete it there. Our deletion and revocation requests to Zernio (including removal of the profile container Zernio maintains for your account) are sent immediately; if a request fails we retry it until it succeeds, so completion on Zernio\'s side can lag briefly behind your deletion. Once our disconnect and deletion requests reach Zernio, our data processing agreement with them requires deletion of all copies within 10 business days of the cessation of the relevant services, with written certification of completion.' },
93
+ { text: '**What account deletion does not do:** deleting your ad2app account does not delete the posts you already published to your social media platforms; that content lives on those platforms under their terms, and you manage or delete it there. Our deletion and revocation requests to Zernio (including removal of the profile container Zernio maintains for your account) are sent immediately; if a request fails we retry it, so completion on Zernio\'s side can lag briefly behind your deletion. Separately, at the end of our overall relationship with Zernio, our data processing agreement requires them to delete all remaining copies within 10 business days of the cessation of services, with written certification of completion.' },
94
94
  { text: '**Post content, scheduled posts, and published-post analytics:** retained for the duration of your account and deleted with your account data (subject to the 30-day recovery window above). Anonymised aggregated analytics may be retained indefinitely.' },
95
95
  { text: '**OAuth tokens:** for platforms where Zernio holds your tokens on our behalf, disconnecting an account or deleting your ad2app account triggers an immediate disconnect and revocation request to Zernio (with retries on failure, as above). Any tokens we hold ourselves are deleted immediately on disconnect or account deletion, with no recovery window.' },
96
96
  { text: '**Inbox data (DMs and comments):** retained for the duration of your account; deleted with your account data (subject to the 30-day recovery window).' },