@ziwako/contact 0.0.0-stage → 0.2.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.
package/dist/index.cjs ADDED
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ AddressType: () => AddressType,
24
+ EmailType: () => EmailType,
25
+ PhoneNumberType: () => PhoneNumberType,
26
+ RelationType: () => RelationType,
27
+ UrlType: () => UrlType
28
+ });
29
+ module.exports = __toCommonJS(index_exports);
30
+
31
+ // src/generated/models/addressType.tanstack.ts
32
+ var AddressType = {
33
+ Home: "home",
34
+ Work: "work",
35
+ Other: "other"
36
+ };
37
+
38
+ // src/generated/models/emailType.tanstack.ts
39
+ var EmailType = {
40
+ Home: "home",
41
+ Work: "work",
42
+ Other: "other"
43
+ };
44
+
45
+ // src/generated/models/phoneNumberType.tanstack.ts
46
+ var PhoneNumberType = {
47
+ Mobile: "mobile",
48
+ Home: "home",
49
+ Work: "work",
50
+ Main: "main",
51
+ HomeFax: "homeFax",
52
+ WorkFax: "workFax",
53
+ Pager: "pager",
54
+ Other: "other"
55
+ };
56
+
57
+ // src/generated/models/relationType.tanstack.ts
58
+ var RelationType = {
59
+ Spouse: "spouse",
60
+ Child: "child",
61
+ Parent: "parent",
62
+ Sibling: "sibling",
63
+ Partner: "partner",
64
+ Assistant: "assistant",
65
+ Manager: "manager",
66
+ Other: "other"
67
+ };
68
+
69
+ // src/generated/models/urlType.tanstack.ts
70
+ var UrlType = {
71
+ Homepage: "homepage",
72
+ Blog: "blog",
73
+ Linkedin: "linkedin",
74
+ Twitter: "twitter",
75
+ Facebook: "facebook",
76
+ Instagram: "instagram",
77
+ Other: "other"
78
+ };
79
+ // Annotate the CommonJS export names for ESM import in node:
80
+ 0 && (module.exports = {
81
+ AddressType,
82
+ EmailType,
83
+ PhoneNumberType,
84
+ RelationType,
85
+ UrlType
86
+ });
87
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/generated/models/addressType.tanstack.ts","../src/generated/models/emailType.tanstack.ts","../src/generated/models/phoneNumberType.tanstack.ts","../src/generated/models/relationType.tanstack.ts","../src/generated/models/urlType.tanstack.ts"],"sourcesContent":["export * from './generated/models'\n","/**\n * Generated by orval v8.19.0 🍺\n * Do not edit manually.\n * Default module\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Type d'adresse\n */\nexport type AddressType = typeof AddressType[keyof typeof AddressType];\n\n\nexport const AddressType = {\n Home: 'home',\n Work: 'work',\n Other: 'other',\n} as const;\n","/**\n * Generated by orval v8.19.0 🍺\n * Do not edit manually.\n * Default module\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Type d'email\n */\nexport type EmailType = typeof EmailType[keyof typeof EmailType];\n\n\nexport const EmailType = {\n Home: 'home',\n Work: 'work',\n Other: 'other',\n} as const;\n","/**\n * Generated by orval v8.19.0 🍺\n * Do not edit manually.\n * Default module\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Type de téléphone\n */\nexport type PhoneNumberType = typeof PhoneNumberType[keyof typeof PhoneNumberType];\n\n\nexport const PhoneNumberType = {\n Mobile: 'mobile',\n Home: 'home',\n Work: 'work',\n Main: 'main',\n HomeFax: 'homeFax',\n WorkFax: 'workFax',\n Pager: 'pager',\n Other: 'other',\n} as const;\n","/**\n * Generated by orval v8.19.0 🍺\n * Do not edit manually.\n * Default module\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Type de relation\n */\nexport type RelationType = typeof RelationType[keyof typeof RelationType];\n\n\nexport const RelationType = {\n Spouse: 'spouse',\n Child: 'child',\n Parent: 'parent',\n Sibling: 'sibling',\n Partner: 'partner',\n Assistant: 'assistant',\n Manager: 'manager',\n Other: 'other',\n} as const;\n","/**\n * Generated by orval v8.19.0 🍺\n * Do not edit manually.\n * Default module\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Type de site web\n */\nexport type UrlType = typeof UrlType[keyof typeof UrlType];\n\n\nexport const UrlType = {\n Homepage: 'homepage',\n Blog: 'blog',\n Linkedin: 'linkedin',\n Twitter: 'twitter',\n Facebook: 'facebook',\n Instagram: 'instagram',\n Other: 'other',\n} as const;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACaO,IAAM,cAAc;AAAA,EACzB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AACT;;;ACJO,IAAM,YAAY;AAAA,EACvB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AACT;;;ACJO,IAAM,kBAAkB;AAAA,EAC7B,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,OAAO;AACT;;;ACTO,IAAM,eAAe;AAAA,EAC1B,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,SAAS;AAAA,EACT,WAAW;AAAA,EACX,SAAS;AAAA,EACT,OAAO;AACT;;;ACTO,IAAM,UAAU;AAAA,EACrB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AAAA,EACV,SAAS;AAAA,EACT,UAAU;AAAA,EACV,WAAW;AAAA,EACX,OAAO;AACT;","names":[]}
@@ -0,0 +1,54 @@
1
+ export { w as AddAudienceContactBody, y as Address, z as AddressType, A as ApiResponse, n as AssignLabelBody, B as ContactList, k as ContactListResponse, F as ContactName, i as ContactResponse, x as CreateApiKeyBody, u as CreateAudienceBody, h as CreateContactBody, G as CreateContactBodyAddressesItem, H as CreateContactBodyEmailsItem, J as CreateContactBodyName, K as CreateContactBodyOrganizationsItem, N as CreateContactBodyPhoneNumbersItem, O as CreateContactBodyRelationsItem, P as CreateContactBodyUrlsItem, d as CreateLabelBody, a as CreateLeadMagnetBody, C as CreateSuppressionBody, D as DeleteLabel200, Q as DeleteLabel200Data, m as DeletedContact200, R as DeletedContact200Data, S as Email, T as EmailType, t as ExportToCsv200, V as ExportToCsv200Data, E as ExportToVcard200, W as ExportToVcard200Data, s as ImportFromCsv200, X as ImportFromCsv200Data, r as ImportFromCsvBody, q as ImportFromVcard200, Y as ImportFromVcard200Data, p as ImportFromVcardBody, I as ImportLeadsBody, Z as Label, _ as LabelList, f as LabelListResponse, e as LabelResponse, j as ListContactParams, o as ListDuplicate200, $ as ListDuplicate200DataItem, L as ListLeadsParams, M as MergeContactBody, a0 as PhoneNumber, a1 as PhoneNumberType, a2 as Relation, a3 as Relation1, a4 as RelationType, v as UpdateAudienceBody, l as UpdateContactBody, g as UpdateLabelBody, c as UpdateLeadBody, b as UpdateLeadMagnetBody, U as UploadLeadMagnetFileBody } from './uploadLeadMagnetFileBody.tanstack-ClBcqB6y.cjs';
2
+
3
+ /**
4
+ * Generated by orval v8.19.0 🍺
5
+ * Do not edit manually.
6
+ * Default module
7
+ * OpenAPI spec version: 1.0.0
8
+ */
9
+ interface Organization {
10
+ /** Nom de l'entreprise */
11
+ name?: string;
12
+ /** Poste / Fonction */
13
+ title?: string;
14
+ /** Service / Département */
15
+ department?: string;
16
+ }
17
+
18
+ /**
19
+ * Generated by orval v8.19.0 🍺
20
+ * Do not edit manually.
21
+ * Default module
22
+ * OpenAPI spec version: 1.0.0
23
+ */
24
+ /**
25
+ * Type de site web
26
+ */
27
+ type UrlType = typeof UrlType[keyof typeof UrlType];
28
+ declare const UrlType: {
29
+ readonly Homepage: "homepage";
30
+ readonly Blog: "blog";
31
+ readonly Linkedin: "linkedin";
32
+ readonly Twitter: "twitter";
33
+ readonly Facebook: "facebook";
34
+ readonly Instagram: "instagram";
35
+ readonly Other: "other";
36
+ };
37
+
38
+ /**
39
+ * Generated by orval v8.19.0 🍺
40
+ * Do not edit manually.
41
+ * Default module
42
+ * OpenAPI spec version: 1.0.0
43
+ */
44
+
45
+ interface Url {
46
+ /** Type de site web */
47
+ type: UrlType;
48
+ /** URL */
49
+ url: string;
50
+ /** Libellé personnalisé */
51
+ label?: string;
52
+ }
53
+
54
+ export { type Organization, type Url, UrlType };
@@ -0,0 +1,54 @@
1
+ export { w as AddAudienceContactBody, y as Address, z as AddressType, A as ApiResponse, n as AssignLabelBody, B as ContactList, k as ContactListResponse, F as ContactName, i as ContactResponse, x as CreateApiKeyBody, u as CreateAudienceBody, h as CreateContactBody, G as CreateContactBodyAddressesItem, H as CreateContactBodyEmailsItem, J as CreateContactBodyName, K as CreateContactBodyOrganizationsItem, N as CreateContactBodyPhoneNumbersItem, O as CreateContactBodyRelationsItem, P as CreateContactBodyUrlsItem, d as CreateLabelBody, a as CreateLeadMagnetBody, C as CreateSuppressionBody, D as DeleteLabel200, Q as DeleteLabel200Data, m as DeletedContact200, R as DeletedContact200Data, S as Email, T as EmailType, t as ExportToCsv200, V as ExportToCsv200Data, E as ExportToVcard200, W as ExportToVcard200Data, s as ImportFromCsv200, X as ImportFromCsv200Data, r as ImportFromCsvBody, q as ImportFromVcard200, Y as ImportFromVcard200Data, p as ImportFromVcardBody, I as ImportLeadsBody, Z as Label, _ as LabelList, f as LabelListResponse, e as LabelResponse, j as ListContactParams, o as ListDuplicate200, $ as ListDuplicate200DataItem, L as ListLeadsParams, M as MergeContactBody, a0 as PhoneNumber, a1 as PhoneNumberType, a2 as Relation, a3 as Relation1, a4 as RelationType, v as UpdateAudienceBody, l as UpdateContactBody, g as UpdateLabelBody, c as UpdateLeadBody, b as UpdateLeadMagnetBody, U as UploadLeadMagnetFileBody } from './uploadLeadMagnetFileBody.tanstack-ClBcqB6y.js';
2
+
3
+ /**
4
+ * Generated by orval v8.19.0 🍺
5
+ * Do not edit manually.
6
+ * Default module
7
+ * OpenAPI spec version: 1.0.0
8
+ */
9
+ interface Organization {
10
+ /** Nom de l'entreprise */
11
+ name?: string;
12
+ /** Poste / Fonction */
13
+ title?: string;
14
+ /** Service / Département */
15
+ department?: string;
16
+ }
17
+
18
+ /**
19
+ * Generated by orval v8.19.0 🍺
20
+ * Do not edit manually.
21
+ * Default module
22
+ * OpenAPI spec version: 1.0.0
23
+ */
24
+ /**
25
+ * Type de site web
26
+ */
27
+ type UrlType = typeof UrlType[keyof typeof UrlType];
28
+ declare const UrlType: {
29
+ readonly Homepage: "homepage";
30
+ readonly Blog: "blog";
31
+ readonly Linkedin: "linkedin";
32
+ readonly Twitter: "twitter";
33
+ readonly Facebook: "facebook";
34
+ readonly Instagram: "instagram";
35
+ readonly Other: "other";
36
+ };
37
+
38
+ /**
39
+ * Generated by orval v8.19.0 🍺
40
+ * Do not edit manually.
41
+ * Default module
42
+ * OpenAPI spec version: 1.0.0
43
+ */
44
+
45
+ interface Url {
46
+ /** Type de site web */
47
+ type: UrlType;
48
+ /** URL */
49
+ url: string;
50
+ /** Libellé personnalisé */
51
+ label?: string;
52
+ }
53
+
54
+ export { type Organization, type Url, UrlType };
package/dist/index.js ADDED
@@ -0,0 +1,56 @@
1
+ // src/generated/models/addressType.tanstack.ts
2
+ var AddressType = {
3
+ Home: "home",
4
+ Work: "work",
5
+ Other: "other"
6
+ };
7
+
8
+ // src/generated/models/emailType.tanstack.ts
9
+ var EmailType = {
10
+ Home: "home",
11
+ Work: "work",
12
+ Other: "other"
13
+ };
14
+
15
+ // src/generated/models/phoneNumberType.tanstack.ts
16
+ var PhoneNumberType = {
17
+ Mobile: "mobile",
18
+ Home: "home",
19
+ Work: "work",
20
+ Main: "main",
21
+ HomeFax: "homeFax",
22
+ WorkFax: "workFax",
23
+ Pager: "pager",
24
+ Other: "other"
25
+ };
26
+
27
+ // src/generated/models/relationType.tanstack.ts
28
+ var RelationType = {
29
+ Spouse: "spouse",
30
+ Child: "child",
31
+ Parent: "parent",
32
+ Sibling: "sibling",
33
+ Partner: "partner",
34
+ Assistant: "assistant",
35
+ Manager: "manager",
36
+ Other: "other"
37
+ };
38
+
39
+ // src/generated/models/urlType.tanstack.ts
40
+ var UrlType = {
41
+ Homepage: "homepage",
42
+ Blog: "blog",
43
+ Linkedin: "linkedin",
44
+ Twitter: "twitter",
45
+ Facebook: "facebook",
46
+ Instagram: "instagram",
47
+ Other: "other"
48
+ };
49
+ export {
50
+ AddressType,
51
+ EmailType,
52
+ PhoneNumberType,
53
+ RelationType,
54
+ UrlType
55
+ };
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/generated/models/addressType.tanstack.ts","../src/generated/models/emailType.tanstack.ts","../src/generated/models/phoneNumberType.tanstack.ts","../src/generated/models/relationType.tanstack.ts","../src/generated/models/urlType.tanstack.ts"],"sourcesContent":["/**\n * Generated by orval v8.19.0 🍺\n * Do not edit manually.\n * Default module\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Type d'adresse\n */\nexport type AddressType = typeof AddressType[keyof typeof AddressType];\n\n\nexport const AddressType = {\n Home: 'home',\n Work: 'work',\n Other: 'other',\n} as const;\n","/**\n * Generated by orval v8.19.0 🍺\n * Do not edit manually.\n * Default module\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Type d'email\n */\nexport type EmailType = typeof EmailType[keyof typeof EmailType];\n\n\nexport const EmailType = {\n Home: 'home',\n Work: 'work',\n Other: 'other',\n} as const;\n","/**\n * Generated by orval v8.19.0 🍺\n * Do not edit manually.\n * Default module\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Type de téléphone\n */\nexport type PhoneNumberType = typeof PhoneNumberType[keyof typeof PhoneNumberType];\n\n\nexport const PhoneNumberType = {\n Mobile: 'mobile',\n Home: 'home',\n Work: 'work',\n Main: 'main',\n HomeFax: 'homeFax',\n WorkFax: 'workFax',\n Pager: 'pager',\n Other: 'other',\n} as const;\n","/**\n * Generated by orval v8.19.0 🍺\n * Do not edit manually.\n * Default module\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Type de relation\n */\nexport type RelationType = typeof RelationType[keyof typeof RelationType];\n\n\nexport const RelationType = {\n Spouse: 'spouse',\n Child: 'child',\n Parent: 'parent',\n Sibling: 'sibling',\n Partner: 'partner',\n Assistant: 'assistant',\n Manager: 'manager',\n Other: 'other',\n} as const;\n","/**\n * Generated by orval v8.19.0 🍺\n * Do not edit manually.\n * Default module\n * OpenAPI spec version: 1.0.0\n */\n\n/**\n * Type de site web\n */\nexport type UrlType = typeof UrlType[keyof typeof UrlType];\n\n\nexport const UrlType = {\n Homepage: 'homepage',\n Blog: 'blog',\n Linkedin: 'linkedin',\n Twitter: 'twitter',\n Facebook: 'facebook',\n Instagram: 'instagram',\n Other: 'other',\n} as const;\n"],"mappings":";AAaO,IAAM,cAAc;AAAA,EACzB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AACT;;;ACJO,IAAM,YAAY;AAAA,EACvB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AACT;;;ACJO,IAAM,kBAAkB;AAAA,EAC7B,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,OAAO;AACT;;;ACTO,IAAM,eAAe;AAAA,EAC1B,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,SAAS;AAAA,EACT,WAAW;AAAA,EACX,SAAS;AAAA,EACT,OAAO;AACT;;;ACTO,IAAM,UAAU;AAAA,EACrB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AAAA,EACV,SAAS;AAAA,EACT,UAAU;AAAA,EACV,WAAW;AAAA,EACX,OAAO;AACT;","names":[]}
@@ -0,0 +1,11 @@
1
+ interface ContactConfig {
2
+ /** Clé secrète (`sk_...:secret`) ou publishable (`pk_...`). */
3
+ apiKey?: string;
4
+ accessToken?: string;
5
+ /** Résout dynamiquement le token de session à chaque requête. */
6
+ getAccessToken?: () => string | null | undefined;
7
+ baseURL?: string;
8
+ }
9
+ declare function configure(options?: ContactConfig): void;
10
+
11
+ export { type ContactConfig as C, configure as c };
@@ -0,0 +1,11 @@
1
+ interface ContactConfig {
2
+ /** Clé secrète (`sk_...:secret`) ou publishable (`pk_...`). */
3
+ apiKey?: string;
4
+ accessToken?: string;
5
+ /** Résout dynamiquement le token de session à chaque requête. */
6
+ getAccessToken?: () => string | null | undefined;
7
+ baseURL?: string;
8
+ }
9
+ declare function configure(options?: ContactConfig): void;
10
+
11
+ export { type ContactConfig as C, configure as c };