├── .babelrc
├── .gitignore
├── .openapi-generator-ignore
├── .openapi-generator
├── FILES
└── VERSION
├── .travis.yml
├── README.md
├── docs
├── AdminApi.md
├── Bounce.md
├── BounceData.md
├── BounceDataResultsInner.md
├── BounceDataResultsInnerCampaign.md
├── BouncesApi.md
├── BouncesGet200Response.md
├── BouncesGet200ResponseData.md
├── Campaign.md
├── CampaignData.md
├── CampaignRegistrationInfo.md
├── CampaignUpdate.md
├── CampaignsApi.md
├── CampaignsCampaignIdStatusPutRequest.md
├── CampaignsGet200Response.md
├── CampaignsGet200ResponseData.md
├── DashboardChartsGet200Response.md
├── DashboardChartsGet200ResponseData.md
├── DashboardChartsGet200ResponseDataLinkClicksInner.md
├── DashboardCount.md
├── DashboardCountData.md
├── DashboardCountDataCampaigns.md
├── DashboardCountDataCampaignsByStatus.md
├── DashboardCountDataLists.md
├── DashboardCountDataSubscribers.md
├── HealthGet200Response.md
├── ImportApi.md
├── ImportStatus.md
├── ImportStatusData.md
├── ImportSubscribersLogsGet200Response.md
├── ImportSubscribersPostRequest.md
├── LanguagePack.md
├── LanguagePackData.md
├── List.md
├── ListRegistrationInfo.md
├── ListsApi.md
├── ListsGet200Response.md
├── ListsGet200ResponseData.md
├── ListsListIdPutRequest.md
├── LogsApi.md
├── LogsGet200Response.md
├── MailBoxBounces.md
├── MaintenanceApi.md
├── MaintenanceSubscribersTypeDelete200Response.md
├── MaintenanceSubscribersTypeDelete200ResponseData.md
├── MediaApi.md
├── MediaFileObject.md
├── MediaGet200Response.md
├── MiscellaneousApi.md
├── NewCampaign.md
├── NewCampaignData.md
├── PublicApi.md
├── PublicListsGet200ResponseInner.md
├── PublicSubscriptionPost200Response.md
├── SMTPSettings.md
├── SMTPTest.md
├── ServerConfig.md
├── ServerConfigData.md
├── ServerConfigDataLangsInner.md
├── Settings.md
├── SettingsApi.md
├── SettingsData.md
├── Subscriber.md
├── SubscriberData.md
├── SubscriberListsInner.md
├── SubscriberProfile.md
├── SubscriberProfileAttribs.md
├── SubscriberRegistrationInfo.md
├── SubscriberRegistrationInfoAttribs.md
├── SubscriberRegistrationInfoAttribsStack.md
├── SubscribersApi.md
├── SubscribersGet200Response.md
├── SubscribersGet200ResponseData.md
├── SubscribersIdBouncesGet200Response.md
├── SubscribersListsPutRequest.md
├── Subscriptions.md
├── Template.md
├── TemplatesApi.md
├── TemplatesGet200Response.md
├── TransactionalApi.md
└── TransactionalMessage.md
├── git_push.sh
├── mocha.opts
├── package-lock.json
├── package.json
├── src
├── ApiClient.js
├── api
│ ├── AdminApi.js
│ ├── BouncesApi.js
│ ├── CampaignsApi.js
│ ├── ImportApi.js
│ ├── ListsApi.js
│ ├── LogsApi.js
│ ├── MaintenanceApi.js
│ ├── MediaApi.js
│ ├── MiscellaneousApi.js
│ ├── PublicApi.js
│ ├── SettingsApi.js
│ ├── SubscribersApi.js
│ ├── TemplatesApi.js
│ └── TransactionalApi.js
├── index.js
└── model
│ ├── Bounce.js
│ ├── BounceData.js
│ ├── BounceDataResultsInner.js
│ ├── BounceDataResultsInnerCampaign.js
│ ├── BouncesGet200Response.js
│ ├── BouncesGet200ResponseData.js
│ ├── Campaign.js
│ ├── CampaignData.js
│ ├── CampaignRegistrationInfo.js
│ ├── CampaignUpdate.js
│ ├── CampaignsCampaignIdStatusPutRequest.js
│ ├── CampaignsGet200Response.js
│ ├── CampaignsGet200ResponseData.js
│ ├── DashboardChartsGet200Response.js
│ ├── DashboardChartsGet200ResponseData.js
│ ├── DashboardChartsGet200ResponseDataLinkClicksInner.js
│ ├── DashboardCount.js
│ ├── DashboardCountData.js
│ ├── DashboardCountDataCampaigns.js
│ ├── DashboardCountDataCampaignsByStatus.js
│ ├── DashboardCountDataLists.js
│ ├── DashboardCountDataSubscribers.js
│ ├── HealthGet200Response.js
│ ├── ImportStatus.js
│ ├── ImportStatusData.js
│ ├── ImportSubscribersLogsGet200Response.js
│ ├── ImportSubscribersPostRequest.js
│ ├── LanguagePack.js
│ ├── LanguagePackData.js
│ ├── List.js
│ ├── ListRegistrationInfo.js
│ ├── ListsGet200Response.js
│ ├── ListsGet200ResponseData.js
│ ├── ListsListIdPutRequest.js
│ ├── LogsGet200Response.js
│ ├── MailBoxBounces.js
│ ├── MaintenanceSubscribersTypeDelete200Response.js
│ ├── MaintenanceSubscribersTypeDelete200ResponseData.js
│ ├── MediaFileObject.js
│ ├── MediaGet200Response.js
│ ├── NewCampaign.js
│ ├── NewCampaignData.js
│ ├── PublicListsGet200ResponseInner.js
│ ├── PublicSubscriptionPost200Response.js
│ ├── SMTPSettings.js
│ ├── SMTPTest.js
│ ├── ServerConfig.js
│ ├── ServerConfigData.js
│ ├── ServerConfigDataLangsInner.js
│ ├── Settings.js
│ ├── SettingsData.js
│ ├── Subscriber.js
│ ├── SubscriberData.js
│ ├── SubscriberListsInner.js
│ ├── SubscriberProfile.js
│ ├── SubscriberProfileAttribs.js
│ ├── SubscriberRegistrationInfo.js
│ ├── SubscriberRegistrationInfoAttribs.js
│ ├── SubscriberRegistrationInfoAttribsStack.js
│ ├── SubscribersGet200Response.js
│ ├── SubscribersGet200ResponseData.js
│ ├── SubscribersIdBouncesGet200Response.js
│ ├── SubscribersListsPutRequest.js
│ ├── Subscriptions.js
│ ├── Template.js
│ ├── TemplatesGet200Response.js
│ └── TransactionalMessage.js
└── test
├── api
├── AdminApi.spec.js
├── BouncesApi.spec.js
├── CampaignsApi.spec.js
├── ImportApi.spec.js
├── ListsApi.spec.js
├── LogsApi.spec.js
├── MaintenanceApi.spec.js
├── MediaApi.spec.js
├── MiscellaneousApi.spec.js
├── PublicApi.spec.js
├── SettingsApi.spec.js
├── SubscribersApi.spec.js
├── TemplatesApi.spec.js
└── TransactionalApi.spec.js
└── model
├── Bounce.spec.js
├── BounceData.spec.js
├── BounceDataResultsInner.spec.js
├── BounceDataResultsInnerCampaign.spec.js
├── BouncesGet200Response.spec.js
├── BouncesGet200ResponseData.spec.js
├── Campaign.spec.js
├── CampaignData.spec.js
├── CampaignRegistrationInfo.spec.js
├── CampaignUpdate.spec.js
├── CampaignsCampaignIdStatusPutRequest.spec.js
├── CampaignsGet200Response.spec.js
├── CampaignsGet200ResponseData.spec.js
├── DashboardChartsGet200Response.spec.js
├── DashboardChartsGet200ResponseData.spec.js
├── DashboardChartsGet200ResponseDataLinkClicksInner.spec.js
├── DashboardCount.spec.js
├── DashboardCountData.spec.js
├── DashboardCountDataCampaigns.spec.js
├── DashboardCountDataCampaignsByStatus.spec.js
├── DashboardCountDataLists.spec.js
├── DashboardCountDataSubscribers.spec.js
├── HealthGet200Response.spec.js
├── ImportStatus.spec.js
├── ImportStatusData.spec.js
├── ImportSubscribersLogsGet200Response.spec.js
├── ImportSubscribersPostRequest.spec.js
├── LanguagePack.spec.js
├── LanguagePackData.spec.js
├── List.spec.js
├── ListRegistrationInfo.spec.js
├── ListsGet200Response.spec.js
├── ListsGet200ResponseData.spec.js
├── ListsListIdPutRequest.spec.js
├── LogsGet200Response.spec.js
├── MailBoxBounces.spec.js
├── MaintenanceSubscribersTypeDelete200Response.spec.js
├── MaintenanceSubscribersTypeDelete200ResponseData.spec.js
├── MediaFileObject.spec.js
├── MediaGet200Response.spec.js
├── NewCampaign.spec.js
├── NewCampaignData.spec.js
├── PublicListsGet200ResponseInner.spec.js
├── PublicSubscriptionPost200Response.spec.js
├── SMTPSettings.spec.js
├── SMTPTest.spec.js
├── ServerConfig.spec.js
├── ServerConfigData.spec.js
├── ServerConfigDataLangsInner.spec.js
├── Settings.spec.js
├── SettingsData.spec.js
├── Subscriber.spec.js
├── SubscriberData.spec.js
├── SubscriberListsInner.spec.js
├── SubscriberProfile.spec.js
├── SubscriberProfileAttribs.spec.js
├── SubscriberRegistrationInfo.spec.js
├── SubscriberRegistrationInfoAttribs.spec.js
├── SubscriberRegistrationInfoAttribsStack.spec.js
├── SubscribersGet200Response.spec.js
├── SubscribersGet200ResponseData.spec.js
├── SubscribersIdBouncesGet200Response.spec.js
├── SubscribersListsPutRequest.spec.js
├── Subscriptions.spec.js
├── Template.spec.js
├── TemplatesGet200Response.spec.js
└── TransactionalMessage.spec.js
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | "@babel/preset-env"
4 | ],
5 | "plugins": [
6 | "@babel/plugin-syntax-dynamic-import",
7 | "@babel/plugin-syntax-import-meta",
8 | "@babel/plugin-proposal-class-properties",
9 | "@babel/plugin-proposal-json-strings",
10 | [
11 | "@babel/plugin-proposal-decorators",
12 | {
13 | "legacy": true
14 | }
15 | ],
16 | "@babel/plugin-proposal-function-sent",
17 | "@babel/plugin-proposal-export-namespace-from",
18 | "@babel/plugin-proposal-numeric-separator",
19 | "@babel/plugin-proposal-throw-expressions",
20 | "@babel/plugin-proposal-export-default-from",
21 | "@babel/plugin-proposal-logical-assignment-operators",
22 | "@babel/plugin-proposal-optional-chaining",
23 | [
24 | "@babel/plugin-proposal-pipeline-operator",
25 | {
26 | "proposal": "minimal"
27 | }
28 | ],
29 | "@babel/plugin-proposal-nullish-coalescing-operator",
30 | "@babel/plugin-proposal-do-expressions",
31 | "@babel/plugin-proposal-function-bind"
32 | ]
33 | }
34 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 | .pnpm-debug.log*
9 |
10 | # Diagnostic reports (https://nodejs.org/api/report.html)
11 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12 |
13 | # Runtime data
14 | pids
15 | *.pid
16 | *.seed
17 | *.pid.lock
18 |
19 | # Directory for instrumented libs generated by jscoverage/JSCover
20 | lib-cov
21 |
22 | # Coverage directory used by tools like istanbul
23 | coverage
24 | *.lcov
25 |
26 | # nyc test coverage
27 | .nyc_output
28 |
29 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30 | .grunt
31 |
32 | # Bower dependency directory (https://bower.io/)
33 | bower_components
34 |
35 | # node-waf configuration
36 | .lock-wscript
37 |
38 | # Compiled binary addons (https://nodejs.org/api/addons.html)
39 | build/Release
40 |
41 | # Dependency directories
42 | node_modules/
43 | jspm_packages/
44 |
45 | # Snowpack dependency directory (https://snowpack.dev/)
46 | web_modules/
47 |
48 | # TypeScript cache
49 | *.tsbuildinfo
50 |
51 | # Optional npm cache directory
52 | .npm
53 |
54 | # Optional eslint cache
55 | .eslintcache
56 |
57 | # Optional stylelint cache
58 | .stylelintcache
59 |
60 | # Microbundle cache
61 | .rpt2_cache/
62 | .rts2_cache_cjs/
63 | .rts2_cache_es/
64 | .rts2_cache_umd/
65 |
66 | # Optional REPL history
67 | .node_repl_history
68 |
69 | # Output of 'npm pack'
70 | *.tgz
71 |
72 | # Yarn Integrity file
73 | .yarn-integrity
74 |
75 | # dotenv environment variable files
76 | .env
77 | .env.development.local
78 | .env.test.local
79 | .env.production.local
80 | .env.local
81 |
82 | # parcel-bundler cache (https://parceljs.org/)
83 | .cache
84 | .parcel-cache
85 |
86 | # Next.js build output
87 | .next
88 | out
89 |
90 | # Nuxt.js build / generate output
91 | .nuxt
92 | dist
93 |
94 | # Gatsby files
95 | .cache/
96 | # Comment in the public line in if your project uses Gatsby and not Next.js
97 | # https://nextjs.org/blog/next-9-1#public-directory-support
98 | # public
99 |
100 | # vuepress build output
101 | .vuepress/dist
102 |
103 | # vuepress v2.x temp and cache directory
104 | .temp
105 | .cache
106 |
107 | # Docusaurus cache and generated files
108 | .docusaurus
109 |
110 | # Serverless directories
111 | .serverless/
112 |
113 | # FuseBox cache
114 | .fusebox/
115 |
116 | # DynamoDB Local files
117 | .dynamodb/
118 |
119 | # TernJS port file
120 | .tern-port
121 |
122 | # Stores VSCode versions used for testing VSCode extensions
123 | .vscode-test
124 |
125 | # yarn v2
126 | .yarn/cache
127 | .yarn/unplugged
128 | .yarn/build-state.yml
129 | .yarn/install-state.gz
130 | .pnp.*
--------------------------------------------------------------------------------
/.openapi-generator-ignore:
--------------------------------------------------------------------------------
1 | # OpenAPI Generator Ignore
2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3 |
4 | # Use this file to prevent files from being overwritten by the generator.
5 | # The patterns follow closely to .gitignore or .dockerignore.
6 |
7 | # As an example, the C# client generator defines ApiClient.cs.
8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9 | #ApiClient.cs
10 |
11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12 | #foo/*/qux
13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14 |
15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16 | #foo/**/qux
17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18 |
19 | # You can also negate patterns with an exclamation (!).
20 | # For example, you can ignore all files in a docs folder with the file extension .md:
21 | #docs/*.md
22 | # Then explicitly reverse the ignore rule for a single file:
23 | #!docs/README.md
24 |
--------------------------------------------------------------------------------
/.openapi-generator/VERSION:
--------------------------------------------------------------------------------
1 | 6.5.0
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | cache: npm
3 | node_js:
4 | - "6"
5 | - "6.1"
6 |
--------------------------------------------------------------------------------
/docs/AdminApi.md:
--------------------------------------------------------------------------------
1 | # Listmonk.AdminApi
2 |
3 | All URIs are relative to *http://localhost:9000/api*
4 |
5 | Method | HTTP request | Description
6 | ------------- | ------------- | -------------
7 | [**adminReloadPost**](AdminApi.md#adminReloadPost) | **POST** /admin/reload |
8 |
9 |
10 |
11 | ## adminReloadPost
12 |
13 | > HealthGet200Response adminReloadPost()
14 |
15 |
16 |
17 | restarts the app
18 |
19 | ### Example
20 |
21 | ```javascript
22 | import Listmonk from 'listmonk';
23 |
24 | let apiInstance = new Listmonk.AdminApi();
25 | apiInstance.adminReloadPost((error, data, response) => {
26 | if (error) {
27 | console.error(error);
28 | } else {
29 | console.log('API called successfully. Returned data: ' + data);
30 | }
31 | });
32 | ```
33 |
34 | ### Parameters
35 |
36 | This endpoint does not need any parameter.
37 |
38 | ### Return type
39 |
40 | [**HealthGet200Response**](HealthGet200Response.md)
41 |
42 | ### Authorization
43 |
44 | No authorization required
45 |
46 | ### HTTP request headers
47 |
48 | - **Content-Type**: Not defined
49 | - **Accept**: application/json
50 |
51 |
--------------------------------------------------------------------------------
/docs/Bounce.md:
--------------------------------------------------------------------------------
1 | # Listmonk.Bounce
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**BounceData**](BounceData.md) | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/BounceData.md:
--------------------------------------------------------------------------------
1 | # Listmonk.BounceData
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **results** | [**[BounceDataResultsInner]**](BounceDataResultsInner.md) | | [optional]
8 | **query** | **String** | | [optional]
9 | **total** | **Number** | | [optional]
10 | **perPage** | **Number** | | [optional]
11 | **page** | **Number** | | [optional]
12 |
13 |
14 |
--------------------------------------------------------------------------------
/docs/BounceDataResultsInner.md:
--------------------------------------------------------------------------------
1 | # Listmonk.BounceDataResultsInner
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **id** | **Number** | | [optional]
8 | **type** | **String** | | [optional]
9 | **source** | **String** | | [optional]
10 | **meta** | **Object** | | [optional]
11 | **createdAt** | **String** | | [optional]
12 | **email** | **String** | | [optional]
13 | **subscriberUuid** | **String** | | [optional]
14 | **subscriberId** | **Number** | | [optional]
15 | **campaign** | [**BounceDataResultsInnerCampaign**](BounceDataResultsInnerCampaign.md) | | [optional]
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/BounceDataResultsInnerCampaign.md:
--------------------------------------------------------------------------------
1 | # Listmonk.BounceDataResultsInnerCampaign
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **id** | **Number** | | [optional]
8 | **name** | **String** | | [optional]
9 |
10 |
11 |
--------------------------------------------------------------------------------
/docs/BouncesGet200Response.md:
--------------------------------------------------------------------------------
1 | # Listmonk.BouncesGet200Response
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**BouncesGet200ResponseData**](BouncesGet200ResponseData.md) | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/BouncesGet200ResponseData.md:
--------------------------------------------------------------------------------
1 | # Listmonk.BouncesGet200ResponseData
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **results** | **Array** | | [optional]
8 | **query** | **String** | | [optional]
9 | **total** | **Number** | | [optional]
10 | **perPage** | **Number** | | [optional]
11 | **page** | **Number** | | [optional]
12 |
13 |
14 |
--------------------------------------------------------------------------------
/docs/Campaign.md:
--------------------------------------------------------------------------------
1 | # Listmonk.Campaign
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**CampaignData**](CampaignData.md) | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/CampaignData.md:
--------------------------------------------------------------------------------
1 | # Listmonk.CampaignData
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **id** | **Number** | | [optional]
8 | **createdAt** | **String** | | [optional]
9 | **updatedAt** | **String** | | [optional]
10 | **campaignID** | **Number** | | [optional]
11 | **views** | **Number** | | [optional]
12 | **clicks** | **Number** | | [optional]
13 | **lists** | [**[BounceDataResultsInnerCampaign]**](BounceDataResultsInnerCampaign.md) | | [optional]
14 | **startedAt** | **String** | | [optional]
15 | **toSend** | **Number** | | [optional]
16 | **sent** | **Number** | | [optional]
17 | **uuid** | **String** | | [optional]
18 | **type** | **String** | | [optional]
19 | **name** | **String** | | [optional]
20 | **subject** | **String** | | [optional]
21 | **fromEmail** | **String** | | [optional]
22 | **body** | **String** | | [optional]
23 | **sendAt** | **String** | | [optional]
24 | **status** | **String** | | [optional]
25 | **contentType** | **String** | | [optional]
26 | **tags** | **[String]** | | [optional]
27 | **templateId** | **Number** | | [optional]
28 | **messenger** | **String** | | [optional]
29 |
30 |
31 |
32 | ## Enum: TypeEnum
33 |
34 |
35 | * `regular` (value: `"regular"`)
36 |
37 | * `optin` (value: `"optin"`)
38 |
39 |
40 |
41 |
42 |
43 | ## Enum: ContentTypeEnum
44 |
45 |
46 | * `richtext` (value: `"richtext"`)
47 |
48 | * `html` (value: `"html"`)
49 |
50 | * `markdown` (value: `"markdown"`)
51 |
52 | * `plain` (value: `"plain"`)
53 |
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/docs/CampaignRegistrationInfo.md:
--------------------------------------------------------------------------------
1 | # Listmonk.CampaignRegistrationInfo
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **name** | **String** | | [optional]
8 | **subject** | **String** | | [optional]
9 | **lists** | **[Number]** | | [optional]
10 | **fromEmail** | **String** | | [optional]
11 | **type** | **String** | | [optional]
12 | **contentType** | **String** | | [optional]
13 | **body** | **String** | | [optional]
14 | **altbody** | **String** | | [optional]
15 | **sendAt** | **String** | | [optional]
16 | **messenger** | **String** | | [optional]
17 | **templateId** | **Number** | | [optional]
18 | **tags** | **[String]** | | [optional]
19 |
20 |
21 |
--------------------------------------------------------------------------------
/docs/CampaignUpdate.md:
--------------------------------------------------------------------------------
1 | # Listmonk.CampaignUpdate
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **name** | **String** | | [optional]
8 | **subject** | **String** | | [optional]
9 | **lists** | **[Number]** | | [optional]
10 | **fromEmail** | **String** | | [optional]
11 | **messenger** | **String** | | [optional]
12 | **type** | **String** | | [optional]
13 | **tags** | **[String]** | | [optional]
14 | **sendLater** | **Boolean** | | [optional]
15 | **sendAt** | **Object** | | [optional]
16 | **headers** | **[Object]** | | [optional]
17 | **templateId** | **Number** | | [optional]
18 | **contentType** | **String** | | [optional]
19 | **body** | **String** | | [optional]
20 | **altbody** | **String** | | [optional]
21 | **archive** | **Boolean** | | [optional]
22 | **archiveTemplateId** | **Number** | | [optional]
23 | **archiveMeta** | **Object** | | [optional]
24 |
25 |
26 |
--------------------------------------------------------------------------------
/docs/CampaignsCampaignIdStatusPutRequest.md:
--------------------------------------------------------------------------------
1 | # Listmonk.CampaignsCampaignIdStatusPutRequest
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **status** | **String** | | [optional]
8 |
9 |
10 |
11 | ## Enum: StatusEnum
12 |
13 |
14 | * `scheduled` (value: `"scheduled"`)
15 |
16 | * `running` (value: `"running"`)
17 |
18 | * `paused` (value: `"paused"`)
19 |
20 | * `cancelled` (value: `"cancelled"`)
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/docs/CampaignsGet200Response.md:
--------------------------------------------------------------------------------
1 | # Listmonk.CampaignsGet200Response
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**CampaignsGet200ResponseData**](CampaignsGet200ResponseData.md) | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/CampaignsGet200ResponseData.md:
--------------------------------------------------------------------------------
1 | # Listmonk.CampaignsGet200ResponseData
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **results** | [**[Campaign]**](Campaign.md) | | [optional]
8 | **query** | **String** | | [optional]
9 | **total** | **Number** | | [optional]
10 | **perPage** | **Number** | | [optional]
11 | **page** | **Number** | | [optional]
12 |
13 |
14 |
--------------------------------------------------------------------------------
/docs/DashboardChartsGet200Response.md:
--------------------------------------------------------------------------------
1 | # Listmonk.DashboardChartsGet200Response
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**DashboardChartsGet200ResponseData**](DashboardChartsGet200ResponseData.md) | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/DashboardChartsGet200ResponseData.md:
--------------------------------------------------------------------------------
1 | # Listmonk.DashboardChartsGet200ResponseData
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **linkClicks** | [**[DashboardChartsGet200ResponseDataLinkClicksInner]**](DashboardChartsGet200ResponseDataLinkClicksInner.md) | | [optional]
8 | **campaignViews** | [**[DashboardChartsGet200ResponseDataLinkClicksInner]**](DashboardChartsGet200ResponseDataLinkClicksInner.md) | | [optional]
9 |
10 |
11 |
--------------------------------------------------------------------------------
/docs/DashboardChartsGet200ResponseDataLinkClicksInner.md:
--------------------------------------------------------------------------------
1 | # Listmonk.DashboardChartsGet200ResponseDataLinkClicksInner
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **count** | **Number** | | [optional]
8 | **date** | **String** | | [optional]
9 |
10 |
11 |
--------------------------------------------------------------------------------
/docs/DashboardCount.md:
--------------------------------------------------------------------------------
1 | # Listmonk.DashboardCount
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**DashboardCountData**](DashboardCountData.md) | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/DashboardCountData.md:
--------------------------------------------------------------------------------
1 | # Listmonk.DashboardCountData
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **subscribers** | [**DashboardCountDataSubscribers**](DashboardCountDataSubscribers.md) | | [optional]
8 | **lists** | [**DashboardCountDataLists**](DashboardCountDataLists.md) | | [optional]
9 | **campaigns** | [**DashboardCountDataCampaigns**](DashboardCountDataCampaigns.md) | | [optional]
10 | **messages** | **Number** | | [optional]
11 |
12 |
13 |
--------------------------------------------------------------------------------
/docs/DashboardCountDataCampaigns.md:
--------------------------------------------------------------------------------
1 | # Listmonk.DashboardCountDataCampaigns
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **total** | **Number** | | [optional]
8 | **byStatus** | [**DashboardCountDataCampaignsByStatus**](DashboardCountDataCampaignsByStatus.md) | | [optional]
9 |
10 |
11 |
--------------------------------------------------------------------------------
/docs/DashboardCountDataCampaignsByStatus.md:
--------------------------------------------------------------------------------
1 | # Listmonk.DashboardCountDataCampaignsByStatus
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **draft** | **Number** | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/DashboardCountDataLists.md:
--------------------------------------------------------------------------------
1 | # Listmonk.DashboardCountDataLists
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **total** | **Number** | | [optional]
8 | **_private** | **Number** | | [optional]
9 | **_public** | **Number** | | [optional]
10 | **optinSingle** | **Number** | | [optional]
11 | **optinDouble** | **Number** | | [optional]
12 |
13 |
14 |
--------------------------------------------------------------------------------
/docs/DashboardCountDataSubscribers.md:
--------------------------------------------------------------------------------
1 | # Listmonk.DashboardCountDataSubscribers
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **total** | **Number** | | [optional]
8 | **blocklisted** | **Object** | | [optional]
9 | **orphans** | **Number** | | [optional]
10 |
11 |
12 |
--------------------------------------------------------------------------------
/docs/HealthGet200Response.md:
--------------------------------------------------------------------------------
1 | # Listmonk.HealthGet200Response
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | **Boolean** | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/ImportStatus.md:
--------------------------------------------------------------------------------
1 | # Listmonk.ImportStatus
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**ImportStatusData**](ImportStatusData.md) | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/ImportStatusData.md:
--------------------------------------------------------------------------------
1 | # Listmonk.ImportStatusData
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **name** | **String** | | [optional]
8 | **total** | **Number** | | [optional]
9 | **imported** | **Number** | | [optional]
10 | **status** | **String** | | [optional]
11 |
12 |
13 |
--------------------------------------------------------------------------------
/docs/ImportSubscribersLogsGet200Response.md:
--------------------------------------------------------------------------------
1 | # Listmonk.ImportSubscribersLogsGet200Response
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | **String** | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/ImportSubscribersPostRequest.md:
--------------------------------------------------------------------------------
1 | # Listmonk.ImportSubscribersPostRequest
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **params** | **String** | | [optional]
8 | **file** | **String** | | [optional]
9 |
10 |
11 |
--------------------------------------------------------------------------------
/docs/LanguagePack.md:
--------------------------------------------------------------------------------
1 | # Listmonk.LanguagePack
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**LanguagePackData**](LanguagePackData.md) | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/List.md:
--------------------------------------------------------------------------------
1 | # Listmonk.List
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **id** | **Number** | | [optional]
8 | **createdAt** | **String** | | [optional]
9 | **updatedAt** | **String** | | [optional]
10 | **uuid** | **String** | | [optional]
11 | **name** | **String** | | [optional]
12 | **type** | **String** | | [optional]
13 | **optin** | **String** | | [optional]
14 | **tags** | **[String]** | | [optional]
15 | **subscriberCount** | **Number** | | [optional]
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/ListRegistrationInfo.md:
--------------------------------------------------------------------------------
1 | # Listmonk.ListRegistrationInfo
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **name** | **String** | | [optional]
8 | **type** | **String** | | [optional]
9 | **optin** | **String** | | [optional]
10 | **tags** | **[String]** | | [optional]
11 |
12 |
13 |
14 | ## Enum: TypeEnum
15 |
16 |
17 | * `public` (value: `"public"`)
18 |
19 | * `private` (value: `"private"`)
20 |
21 |
22 |
23 |
24 |
25 | ## Enum: OptinEnum
26 |
27 |
28 | * `single` (value: `"single"`)
29 |
30 | * `double` (value: `"double"`)
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/docs/ListsGet200Response.md:
--------------------------------------------------------------------------------
1 | # Listmonk.ListsGet200Response
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**ListsGet200ResponseData**](ListsGet200ResponseData.md) | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/ListsGet200ResponseData.md:
--------------------------------------------------------------------------------
1 | # Listmonk.ListsGet200ResponseData
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **results** | **[Array]** | | [optional]
8 | **total** | **Number** | | [optional]
9 | **perPage** | **Number** | | [optional]
10 | **page** | **Number** | | [optional]
11 |
12 |
13 |
--------------------------------------------------------------------------------
/docs/ListsListIdPutRequest.md:
--------------------------------------------------------------------------------
1 | # Listmonk.ListsListIdPutRequest
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **name** | **String** | | [optional]
8 | **type** | **String** | | [optional]
9 | **optin** | **String** | | [optional]
10 | **tags** | **[String]** | | [optional]
11 |
12 |
13 |
--------------------------------------------------------------------------------
/docs/LogsApi.md:
--------------------------------------------------------------------------------
1 | # Listmonk.LogsApi
2 |
3 | All URIs are relative to *http://localhost:9000/api*
4 |
5 | Method | HTTP request | Description
6 | ------------- | ------------- | -------------
7 | [**logsGet**](LogsApi.md#logsGet) | **GET** /logs |
8 |
9 |
10 |
11 | ## logsGet
12 |
13 | > LogsGet200Response logsGet()
14 |
15 |
16 |
17 | returns the log entries stored in the log buffer
18 |
19 | ### Example
20 |
21 | ```javascript
22 | import Listmonk from 'listmonk';
23 |
24 | let apiInstance = new Listmonk.LogsApi();
25 | apiInstance.logsGet((error, data, response) => {
26 | if (error) {
27 | console.error(error);
28 | } else {
29 | console.log('API called successfully. Returned data: ' + data);
30 | }
31 | });
32 | ```
33 |
34 | ### Parameters
35 |
36 | This endpoint does not need any parameter.
37 |
38 | ### Return type
39 |
40 | [**LogsGet200Response**](LogsGet200Response.md)
41 |
42 | ### Authorization
43 |
44 | No authorization required
45 |
46 | ### HTTP request headers
47 |
48 | - **Content-Type**: Not defined
49 | - **Accept**: application/json
50 |
51 |
--------------------------------------------------------------------------------
/docs/LogsGet200Response.md:
--------------------------------------------------------------------------------
1 | # Listmonk.LogsGet200Response
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | **[String]** | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/MailBoxBounces.md:
--------------------------------------------------------------------------------
1 | # Listmonk.MailBoxBounces
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **uuid** | **String** | | [optional]
8 | **enabled** | **Boolean** | | [optional]
9 | **type** | **String** | | [optional]
10 | **host** | **String** | | [optional]
11 | **port** | **Number** | | [optional]
12 | **authProtocol** | **String** | | [optional]
13 | **returnPath** | **String** | | [optional]
14 | **username** | **String** | | [optional]
15 | **tlsEnabled** | **Boolean** | | [optional]
16 | **tlsSkipVerify** | **Boolean** | | [optional]
17 | **scanInterval** | **String** | | [optional]
18 |
19 |
20 |
--------------------------------------------------------------------------------
/docs/MaintenanceSubscribersTypeDelete200Response.md:
--------------------------------------------------------------------------------
1 | # Listmonk.MaintenanceSubscribersTypeDelete200Response
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**MaintenanceSubscribersTypeDelete200ResponseData**](MaintenanceSubscribersTypeDelete200ResponseData.md) | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/MaintenanceSubscribersTypeDelete200ResponseData.md:
--------------------------------------------------------------------------------
1 | # Listmonk.MaintenanceSubscribersTypeDelete200ResponseData
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **count** | **Number** | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/MediaFileObject.md:
--------------------------------------------------------------------------------
1 | # Listmonk.MediaFileObject
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **id** | **Number** | | [optional]
8 | **uuid** | **String** | | [optional]
9 | **filename** | **String** | | [optional]
10 | **createdAt** | **String** | | [optional]
11 | **thumbUri** | **String** | | [optional]
12 | **uri** | **String** | | [optional]
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/MediaGet200Response.md:
--------------------------------------------------------------------------------
1 | # Listmonk.MediaGet200Response
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**[MediaFileObject]**](MediaFileObject.md) | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/NewCampaign.md:
--------------------------------------------------------------------------------
1 | # Listmonk.NewCampaign
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**NewCampaignData**](NewCampaignData.md) | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/NewCampaignData.md:
--------------------------------------------------------------------------------
1 | # Listmonk.NewCampaignData
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **id** | **Number** | | [optional]
8 | **createdAt** | **String** | | [optional]
9 | **updatedAt** | **String** | | [optional]
10 | **views** | **Number** | | [optional]
11 | **clicks** | **Number** | | [optional]
12 | **bounces** | **Number** | | [optional]
13 | **lists** | [**[BounceDataResultsInnerCampaign]**](BounceDataResultsInnerCampaign.md) | | [optional]
14 | **startedAt** | **String** | | [optional]
15 | **toSend** | **Number** | | [optional]
16 | **sent** | **Number** | | [optional]
17 | **uuid** | **String** | | [optional]
18 | **type** | **String** | | [optional]
19 | **name** | **String** | | [optional]
20 | **subject** | **String** | | [optional]
21 | **fromEmail** | **String** | | [optional]
22 | **body** | **String** | | [optional]
23 | **altbody** | **String** | | [optional]
24 | **sendAt** | **String** | | [optional]
25 | **status** | **String** | | [optional]
26 | **contentType** | **String** | | [optional]
27 | **tags** | **[String]** | | [optional]
28 | **templateId** | **Number** | | [optional]
29 | **messenger** | **String** | | [optional]
30 |
31 |
32 |
--------------------------------------------------------------------------------
/docs/PublicApi.md:
--------------------------------------------------------------------------------
1 | # Listmonk.PublicApi
2 |
3 | All URIs are relative to *http://localhost:9000/api*
4 |
5 | Method | HTTP request | Description
6 | ------------- | ------------- | -------------
7 | [**publicListsGet**](PublicApi.md#publicListsGet) | **GET** /public/lists |
8 | [**publicSubscriptionPost**](PublicApi.md#publicSubscriptionPost) | **POST** /public/subscription |
9 |
10 |
11 |
12 | ## publicListsGet
13 |
14 | > [PublicListsGet200ResponseInner] publicListsGet()
15 |
16 |
17 |
18 | returns the list of public lists with minimal fields
19 |
20 | ### Example
21 |
22 | ```javascript
23 | import Listmonk from 'listmonk';
24 |
25 | let apiInstance = new Listmonk.PublicApi();
26 | apiInstance.publicListsGet((error, data, response) => {
27 | if (error) {
28 | console.error(error);
29 | } else {
30 | console.log('API called successfully. Returned data: ' + data);
31 | }
32 | });
33 | ```
34 |
35 | ### Parameters
36 |
37 | This endpoint does not need any parameter.
38 |
39 | ### Return type
40 |
41 | [**[PublicListsGet200ResponseInner]**](PublicListsGet200ResponseInner.md)
42 |
43 | ### Authorization
44 |
45 | No authorization required
46 |
47 | ### HTTP request headers
48 |
49 | - **Content-Type**: Not defined
50 | - **Accept**: application/json
51 |
52 |
53 | ## publicSubscriptionPost
54 |
55 | > PublicSubscriptionPost200Response publicSubscriptionPost()
56 |
57 |
58 |
59 | handles subscription requests coming from public API calls.
60 |
61 | ### Example
62 |
63 | ```javascript
64 | import Listmonk from 'listmonk';
65 |
66 | let apiInstance = new Listmonk.PublicApi();
67 | apiInstance.publicSubscriptionPost((error, data, response) => {
68 | if (error) {
69 | console.error(error);
70 | } else {
71 | console.log('API called successfully. Returned data: ' + data);
72 | }
73 | });
74 | ```
75 |
76 | ### Parameters
77 |
78 | This endpoint does not need any parameter.
79 |
80 | ### Return type
81 |
82 | [**PublicSubscriptionPost200Response**](PublicSubscriptionPost200Response.md)
83 |
84 | ### Authorization
85 |
86 | No authorization required
87 |
88 | ### HTTP request headers
89 |
90 | - **Content-Type**: Not defined
91 | - **Accept**: application/json
92 |
93 |
--------------------------------------------------------------------------------
/docs/PublicListsGet200ResponseInner.md:
--------------------------------------------------------------------------------
1 | # Listmonk.PublicListsGet200ResponseInner
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **uuid** | **String** | | [optional]
8 | **name** | **String** | | [optional]
9 |
10 |
11 |
--------------------------------------------------------------------------------
/docs/PublicSubscriptionPost200Response.md:
--------------------------------------------------------------------------------
1 | # Listmonk.PublicSubscriptionPost200Response
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **name** | **String** | | [optional]
8 | **email** | **String** | | [optional]
9 | **listUuids** | **[String]** | | [optional]
10 |
11 |
12 |
--------------------------------------------------------------------------------
/docs/SMTPSettings.md:
--------------------------------------------------------------------------------
1 | # Listmonk.SMTPSettings
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **uuid** | **String** | | [optional]
8 | **enabled** | **Boolean** | | [optional]
9 | **host** | **String** | | [optional]
10 | **helloHostname** | **String** | | [optional]
11 | **port** | **Number** | | [optional]
12 | **authProtocol** | **String** | | [optional]
13 | **username** | **String** | | [optional]
14 | **emailHeaders** | **[Object]** | | [optional]
15 | **maxConns** | **Number** | | [optional]
16 | **maxMsgRetries** | **Number** | | [optional]
17 | **idleTimeout** | **String** | | [optional]
18 | **waitTimeout** | **String** | | [optional]
19 | **tlsType** | **String** | | [optional]
20 | **tlsSkipVerify** | **Boolean** | | [optional]
21 |
22 |
23 |
--------------------------------------------------------------------------------
/docs/SMTPTest.md:
--------------------------------------------------------------------------------
1 | # Listmonk.SMTPTest
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **uuid** | **String** | | [optional]
8 | **enabled** | **Boolean** | | [optional]
9 | **host** | **String** | | [optional]
10 | **helloHostname** | **String** | | [optional]
11 | **port** | **Number** | | [optional]
12 | **authProtocol** | **String** | | [optional]
13 | **username** | **String** | | [optional]
14 | **emailHeaders** | **[Object]** | | [optional]
15 | **maxConns** | **Number** | | [optional]
16 | **maxMsgRetries** | **Number** | | [optional]
17 | **idleTimeout** | **String** | | [optional]
18 | **waitTimeout** | **String** | | [optional]
19 | **tlsType** | **String** | | [optional]
20 | **tlsSkipVerify** | **Boolean** | | [optional]
21 | **strEmailHeaders** | **String** | | [optional]
22 | **password** | **String** | | [optional]
23 | **email** | **String** | | [optional]
24 |
25 |
26 |
--------------------------------------------------------------------------------
/docs/ServerConfig.md:
--------------------------------------------------------------------------------
1 | # Listmonk.ServerConfig
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**ServerConfigData**](ServerConfigData.md) | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/ServerConfigData.md:
--------------------------------------------------------------------------------
1 | # Listmonk.ServerConfigData
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **messengers** | **[String]** | | [optional]
8 | **langs** | [**[ServerConfigDataLangsInner]**](ServerConfigDataLangsInner.md) | | [optional]
9 | **lang** | **String** | | [optional]
10 | **update** | **String** | | [optional]
11 | **needsRestart** | **Boolean** | | [optional]
12 | **version** | **String** | | [optional]
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/ServerConfigDataLangsInner.md:
--------------------------------------------------------------------------------
1 | # Listmonk.ServerConfigDataLangsInner
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **code** | **String** | | [optional]
8 | **name** | **String** | | [optional]
9 |
10 |
11 |
--------------------------------------------------------------------------------
/docs/Settings.md:
--------------------------------------------------------------------------------
1 | # Listmonk.Settings
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**SettingsData**](SettingsData.md) | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/Subscriber.md:
--------------------------------------------------------------------------------
1 | # Listmonk.Subscriber
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **id** | **Number** | | [optional]
8 | **createdAt** | **String** | | [optional]
9 | **updatedAt** | **String** | | [optional]
10 | **uuid** | **String** | | [optional]
11 | **email** | **String** | | [optional]
12 | **name** | **String** | | [optional]
13 | **attribs** | [**SubscriberProfileAttribs**](SubscriberProfileAttribs.md) | | [optional]
14 | **status** | **String** | | [optional]
15 | **lists** | [**[SubscriberListsInner]**](SubscriberListsInner.md) | | [optional]
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/SubscriberData.md:
--------------------------------------------------------------------------------
1 | # Listmonk.SubscriberData
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **profile** | [**[SubscriberProfile]**](SubscriberProfile.md) | | [optional]
8 | **subscriptions** | [**[Subscriptions]**](Subscriptions.md) | | [optional]
9 | **campaignViews** | **[Object]** | | [optional]
10 | **linkClicks** | **[Object]** | | [optional]
11 |
12 |
13 |
--------------------------------------------------------------------------------
/docs/SubscriberListsInner.md:
--------------------------------------------------------------------------------
1 | # Listmonk.SubscriberListsInner
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **subscriptionStatus** | **String** | | [optional]
8 | **id** | **Number** | | [optional]
9 | **uuid** | **String** | | [optional]
10 | **name** | **String** | | [optional]
11 | **type** | **String** | | [optional]
12 | **tags** | **[String]** | | [optional]
13 | **createdAt** | **String** | | [optional]
14 | **updatedAt** | **String** | | [optional]
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/SubscriberProfile.md:
--------------------------------------------------------------------------------
1 | # Listmonk.SubscriberProfile
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **id** | **Number** | | [optional]
8 | **uuid** | **String** | | [optional]
9 | **email** | **String** | | [optional]
10 | **name** | **String** | | [optional]
11 | **attribs** | [**SubscriberProfileAttribs**](SubscriberProfileAttribs.md) | | [optional]
12 | **status** | **String** | | [optional]
13 | **createdAt** | **String** | | [optional]
14 | **updatedAt** | **String** | | [optional]
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/SubscriberProfileAttribs.md:
--------------------------------------------------------------------------------
1 | # Listmonk.SubscriberProfileAttribs
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **city** | **String** | | [optional]
8 | **good** | **Boolean** | | [optional]
9 | **type** | **String** | | [optional]
10 |
11 |
12 |
--------------------------------------------------------------------------------
/docs/SubscriberRegistrationInfo.md:
--------------------------------------------------------------------------------
1 | # Listmonk.SubscriberRegistrationInfo
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **email** | **String** | | [optional]
8 | **name** | **String** | | [optional]
9 | **status** | **String** | | [optional]
10 | **lists** | **[Number]** | | [optional]
11 | **attribs** | [**SubscriberRegistrationInfoAttribs**](SubscriberRegistrationInfoAttribs.md) | | [optional]
12 |
13 |
14 |
--------------------------------------------------------------------------------
/docs/SubscriberRegistrationInfoAttribs.md:
--------------------------------------------------------------------------------
1 | # Listmonk.SubscriberRegistrationInfoAttribs
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **city** | **String** | | [optional]
8 | **projects** | **Number** | | [optional]
9 | **stack** | [**SubscriberRegistrationInfoAttribsStack**](SubscriberRegistrationInfoAttribsStack.md) | | [optional]
10 |
11 |
12 |
--------------------------------------------------------------------------------
/docs/SubscriberRegistrationInfoAttribsStack.md:
--------------------------------------------------------------------------------
1 | # Listmonk.SubscriberRegistrationInfoAttribsStack
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **languages** | **[String]** | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/SubscribersGet200Response.md:
--------------------------------------------------------------------------------
1 | # Listmonk.SubscribersGet200Response
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**SubscribersGet200ResponseData**](SubscribersGet200ResponseData.md) | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/SubscribersGet200ResponseData.md:
--------------------------------------------------------------------------------
1 | # Listmonk.SubscribersGet200ResponseData
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **results** | [**[Subscriber]**](Subscriber.md) | | [optional]
8 | **query** | **String** | | [optional]
9 | **total** | **Number** | | [optional]
10 | **perPage** | **Number** | | [optional]
11 | **page** | **Number** | | [optional]
12 |
13 |
14 |
--------------------------------------------------------------------------------
/docs/SubscribersIdBouncesGet200Response.md:
--------------------------------------------------------------------------------
1 | # Listmonk.SubscribersIdBouncesGet200Response
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | **Array** | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/SubscribersListsPutRequest.md:
--------------------------------------------------------------------------------
1 | # Listmonk.SubscribersListsPutRequest
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **ids** | **Number** | The ids of the subscribers to be modified. | [optional]
8 | **action** | **String** | Whether to add, remove, or unsubscribe the users. | [optional]
9 | **targetListIds** | **Number** | The ids of the lists to be modified. | [optional]
10 | **status** | **String** | confirmed, unconfirmed, or unsubscribed status. | [optional]
11 |
12 |
13 |
14 | ## Enum: ActionEnum
15 |
16 |
17 | * `add` (value: `"add"`)
18 |
19 | * `remove` (value: `"remove"`)
20 |
21 | * `unsubscribe` (value: `"unsubscribe"`)
22 |
23 |
24 |
25 |
26 |
27 | ## Enum: StatusEnum
28 |
29 |
30 | * `confirmed` (value: `"confirmed"`)
31 |
32 | * `unconfirmed` (value: `"unconfirmed"`)
33 |
34 | * `unsubscribed` (value: `"unsubscribed"`)
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/docs/Subscriptions.md:
--------------------------------------------------------------------------------
1 | # Listmonk.Subscriptions
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **subscriptionStatus** | **String** | | [optional]
8 | **name** | **String** | | [optional]
9 | **type** | **String** | | [optional]
10 | **createdAt** | **String** | | [optional]
11 |
12 |
13 |
--------------------------------------------------------------------------------
/docs/Template.md:
--------------------------------------------------------------------------------
1 | # Listmonk.Template
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **id** | **Number** | | [optional]
8 | **createdAt** | **String** | | [optional]
9 | **updatedAt** | **String** | | [optional]
10 | **name** | **String** | | [optional]
11 | **body** | **String** | | [optional]
12 | **type** | **String** | | [optional]
13 | **isDefault** | **Boolean** | | [optional]
14 |
15 |
16 |
--------------------------------------------------------------------------------
/docs/TemplatesGet200Response.md:
--------------------------------------------------------------------------------
1 | # Listmonk.TemplatesGet200Response
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **data** | [**[Template]**](Template.md) | | [optional]
8 |
9 |
10 |
--------------------------------------------------------------------------------
/docs/TransactionalApi.md:
--------------------------------------------------------------------------------
1 | # Listmonk.TransactionalApi
2 |
3 | All URIs are relative to *http://localhost:9000/api*
4 |
5 | Method | HTTP request | Description
6 | ------------- | ------------- | -------------
7 | [**transactionalPost**](TransactionalApi.md#transactionalPost) | **POST** /transactional |
8 |
9 |
10 |
11 | ## transactionalPost
12 |
13 | > HealthGet200Response transactionalPost(opts)
14 |
15 |
16 |
17 | ### Example
18 |
19 | ```javascript
20 | import Listmonk from 'listmonk';
21 |
22 | let apiInstance = new Listmonk.TransactionalApi();
23 | let opts = {
24 | 'transactionalMessage': new Listmonk.TransactionalMessage() // TransactionalMessage |
25 | };
26 | apiInstance.transactionalPost(opts, (error, data, response) => {
27 | if (error) {
28 | console.error(error);
29 | } else {
30 | console.log('API called successfully. Returned data: ' + data);
31 | }
32 | });
33 | ```
34 |
35 | ### Parameters
36 |
37 |
38 | Name | Type | Description | Notes
39 | ------------- | ------------- | ------------- | -------------
40 | **transactionalMessage** | [**TransactionalMessage**](TransactionalMessage.md)| | [optional]
41 |
42 | ### Return type
43 |
44 | [**HealthGet200Response**](HealthGet200Response.md)
45 |
46 | ### Authorization
47 |
48 | No authorization required
49 |
50 | ### HTTP request headers
51 |
52 | - **Content-Type**: application/json
53 | - **Accept**: application/json
54 |
55 |
--------------------------------------------------------------------------------
/docs/TransactionalMessage.md:
--------------------------------------------------------------------------------
1 | # Listmonk.TransactionalMessage
2 |
3 | ## Properties
4 |
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **subscriberEmail** | **String** | | [optional]
8 | **subscriberId** | **Number** | | [optional]
9 | **templateId** | **Number** | | [optional]
10 | **fromEmail** | **String** | | [optional]
11 | **data** | **Object** | | [optional]
12 | **headers** | **[Object]** | | [optional]
13 |
14 |
15 |
--------------------------------------------------------------------------------
/git_push.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3 | #
4 | # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5 |
6 | git_user_id=$1
7 | git_repo_id=$2
8 | release_note=$3
9 | git_host=$4
10 |
11 | if [ "$git_host" = "" ]; then
12 | git_host="github.com"
13 | echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14 | fi
15 |
16 | if [ "$git_user_id" = "" ]; then
17 | git_user_id="GIT_USER_ID"
18 | echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19 | fi
20 |
21 | if [ "$git_repo_id" = "" ]; then
22 | git_repo_id="GIT_REPO_ID"
23 | echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24 | fi
25 |
26 | if [ "$release_note" = "" ]; then
27 | release_note="Minor update"
28 | echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29 | fi
30 |
31 | # Initialize the local directory as a Git repository
32 | git init
33 |
34 | # Adds the files in the local repository and stages them for commit.
35 | git add .
36 |
37 | # Commits the tracked changes and prepares them to be pushed to a remote repository.
38 | git commit -m "$release_note"
39 |
40 | # Sets the new remote
41 | git_remote=$(git remote)
42 | if [ "$git_remote" = "" ]; then # git remote not defined
43 |
44 | if [ "$GIT_TOKEN" = "" ]; then
45 | echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46 | git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47 | else
48 | git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49 | fi
50 |
51 | fi
52 |
53 | git pull origin master
54 |
55 | # Pushes (Forces) the changes in the local repository up to the remote repository
56 | echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57 | git push origin master 2>&1 | grep -v 'To https'
58 |
--------------------------------------------------------------------------------
/mocha.opts:
--------------------------------------------------------------------------------
1 | --timeout 10000
2 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "listmonk",
3 | "version": "1.0.0",
4 | "description": "The API collection for listmonk",
5 | "license": "AGPL-3.0 license",
6 | "main": "dist/index.js",
7 | "scripts": {
8 | "build": "babel src -d dist",
9 | "prepare": "npm run build",
10 | "test": "mocha --require @babel/register --recursive"
11 | },
12 | "browser": {
13 | "fs": false
14 | },
15 | "dependencies": {
16 | "@babel/cli": "^7.0.0",
17 | "superagent": "^5.3.0"
18 | },
19 | "devDependencies": {
20 | "@babel/core": "^7.0.0",
21 | "@babel/plugin-proposal-class-properties": "^7.0.0",
22 | "@babel/plugin-proposal-decorators": "^7.0.0",
23 | "@babel/plugin-proposal-do-expressions": "^7.0.0",
24 | "@babel/plugin-proposal-export-default-from": "^7.0.0",
25 | "@babel/plugin-proposal-export-namespace-from": "^7.0.0",
26 | "@babel/plugin-proposal-function-bind": "^7.0.0",
27 | "@babel/plugin-proposal-function-sent": "^7.0.0",
28 | "@babel/plugin-proposal-json-strings": "^7.0.0",
29 | "@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
30 | "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
31 | "@babel/plugin-proposal-numeric-separator": "^7.0.0",
32 | "@babel/plugin-proposal-optional-chaining": "^7.0.0",
33 | "@babel/plugin-proposal-pipeline-operator": "^7.0.0",
34 | "@babel/plugin-proposal-throw-expressions": "^7.0.0",
35 | "@babel/plugin-syntax-dynamic-import": "^7.0.0",
36 | "@babel/plugin-syntax-import-meta": "^7.0.0",
37 | "@babel/preset-env": "^7.0.0",
38 | "@babel/register": "^7.0.0",
39 | "expect.js": "^0.3.1",
40 | "mocha": "^8.0.1",
41 | "sinon": "^7.2.0"
42 | },
43 | "files": [
44 | "dist"
45 | ]
46 | }
47 |
--------------------------------------------------------------------------------
/src/api/AdminApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 |
15 | import ApiClient from "../ApiClient";
16 | import HealthGet200Response from '../model/HealthGet200Response';
17 |
18 | /**
19 | * Admin service.
20 | * @module api/AdminApi
21 | * @version 1.0.0
22 | */
23 | export default class AdminApi {
24 |
25 | /**
26 | * Constructs a new AdminApi.
27 | * @alias module:api/AdminApi
28 | * @class
29 | * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
30 | * default to {@link module:ApiClient#instance} if unspecified.
31 | */
32 | constructor(apiClient) {
33 | this.apiClient = apiClient || ApiClient.instance;
34 | }
35 |
36 |
37 | /**
38 | * Callback function to receive the result of the adminReloadPost operation.
39 | * @callback module:api/AdminApi~adminReloadPostCallback
40 | * @param {String} error Error message, if any.
41 | * @param {module:model/HealthGet200Response} data The data returned by the service call.
42 | * @param {String} response The complete HTTP response.
43 | */
44 |
45 | /**
46 | * restarts the app
47 | * @param {module:api/AdminApi~adminReloadPostCallback} callback The callback function, accepting three arguments: error, data, response
48 | * data is of type: {@link module:model/HealthGet200Response}
49 | */
50 | adminReloadPost(callback) {
51 | let postBody = null;
52 |
53 | let pathParams = {
54 | };
55 | let queryParams = {
56 | };
57 | let headerParams = {
58 | };
59 | let formParams = {
60 | };
61 |
62 | let authNames = [];
63 | let contentTypes = [];
64 | let accepts = ['application/json'];
65 | let returnType = HealthGet200Response;
66 | return this.apiClient.callApi(
67 | '/admin/reload', 'POST',
68 | pathParams, queryParams, headerParams, formParams, postBody,
69 | authNames, contentTypes, accepts, returnType, null, callback
70 | );
71 | }
72 |
73 |
74 | }
75 |
--------------------------------------------------------------------------------
/src/api/LogsApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 |
15 | import ApiClient from "../ApiClient";
16 | import LogsGet200Response from '../model/LogsGet200Response';
17 |
18 | /**
19 | * Logs service.
20 | * @module api/LogsApi
21 | * @version 1.0.0
22 | */
23 | export default class LogsApi {
24 |
25 | /**
26 | * Constructs a new LogsApi.
27 | * @alias module:api/LogsApi
28 | * @class
29 | * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
30 | * default to {@link module:ApiClient#instance} if unspecified.
31 | */
32 | constructor(apiClient) {
33 | this.apiClient = apiClient || ApiClient.instance;
34 | }
35 |
36 |
37 | /**
38 | * Callback function to receive the result of the logsGet operation.
39 | * @callback module:api/LogsApi~logsGetCallback
40 | * @param {String} error Error message, if any.
41 | * @param {module:model/LogsGet200Response} data The data returned by the service call.
42 | * @param {String} response The complete HTTP response.
43 | */
44 |
45 | /**
46 | * returns the log entries stored in the log buffer
47 | * @param {module:api/LogsApi~logsGetCallback} callback The callback function, accepting three arguments: error, data, response
48 | * data is of type: {@link module:model/LogsGet200Response}
49 | */
50 | logsGet(callback) {
51 | let postBody = null;
52 |
53 | let pathParams = {
54 | };
55 | let queryParams = {
56 | };
57 | let headerParams = {
58 | };
59 | let formParams = {
60 | };
61 |
62 | let authNames = [];
63 | let contentTypes = [];
64 | let accepts = ['application/json'];
65 | let returnType = LogsGet200Response;
66 | return this.apiClient.callApi(
67 | '/logs', 'GET',
68 | pathParams, queryParams, headerParams, formParams, postBody,
69 | authNames, contentTypes, accepts, returnType, null, callback
70 | );
71 | }
72 |
73 |
74 | }
75 |
--------------------------------------------------------------------------------
/src/api/TransactionalApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 |
15 | import ApiClient from "../ApiClient";
16 | import HealthGet200Response from '../model/HealthGet200Response';
17 | import TransactionalMessage from '../model/TransactionalMessage';
18 |
19 | /**
20 | * Transactional service.
21 | * @module api/TransactionalApi
22 | * @version 1.0.0
23 | */
24 | export default class TransactionalApi {
25 |
26 | /**
27 | * Constructs a new TransactionalApi.
28 | * @alias module:api/TransactionalApi
29 | * @class
30 | * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
31 | * default to {@link module:ApiClient#instance} if unspecified.
32 | */
33 | constructor(apiClient) {
34 | this.apiClient = apiClient || ApiClient.instance;
35 | }
36 |
37 |
38 | /**
39 | * Callback function to receive the result of the transactionalPost operation.
40 | * @callback module:api/TransactionalApi~transactionalPostCallback
41 | * @param {String} error Error message, if any.
42 | * @param {module:model/HealthGet200Response} data The data returned by the service call.
43 | * @param {String} response The complete HTTP response.
44 | */
45 |
46 | /**
47 | * @param {Object} opts Optional parameters
48 | * @param {module:model/TransactionalMessage} [transactionalMessage]
49 | * @param {module:api/TransactionalApi~transactionalPostCallback} callback The callback function, accepting three arguments: error, data, response
50 | * data is of type: {@link module:model/HealthGet200Response}
51 | */
52 | transactionalPost(opts, callback) {
53 | opts = opts || {};
54 | let postBody = opts['transactionalMessage'];
55 |
56 | let pathParams = {
57 | };
58 | let queryParams = {
59 | };
60 | let headerParams = {
61 | };
62 | let formParams = {
63 | };
64 |
65 | let authNames = [];
66 | let contentTypes = ['application/json'];
67 | let accepts = ['application/json'];
68 | let returnType = HealthGet200Response;
69 | return this.apiClient.callApi(
70 | '/transactional', 'POST',
71 | pathParams, queryParams, headerParams, formParams, postBody,
72 | authNames, contentTypes, accepts, returnType, null, callback
73 | );
74 | }
75 |
76 |
77 | }
78 |
--------------------------------------------------------------------------------
/src/model/Bounce.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | import ApiClient from '../ApiClient';
15 | import BounceData from './BounceData';
16 |
17 | /**
18 | * The Bounce model module.
19 | * @module model/Bounce
20 | * @version 1.0.0
21 | */
22 | class Bounce {
23 | /**
24 | * Constructs a new Bounce
.
25 | * @alias module:model/Bounce
26 | */
27 | constructor() {
28 |
29 | Bounce.initialize(this);
30 | }
31 |
32 | /**
33 | * Initializes the fields of this object.
34 | * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
35 | * Only for internal use.
36 | */
37 | static initialize(obj) {
38 | }
39 |
40 | /**
41 | * Constructs a Bounce
from a plain JavaScript object, optionally creating a new instance.
42 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
43 | * @param {Object} data The plain JavaScript object bearing properties of interest.
44 | * @param {module:model/Bounce} obj Optional instance to populate.
45 | * @return {module:model/Bounce} The populated Bounce
instance.
46 | */
47 | static constructFromObject(data, obj) {
48 | if (data) {
49 | obj = obj || new Bounce();
50 |
51 | if (data.hasOwnProperty('data')) {
52 | obj['data'] = BounceData.constructFromObject(data['data']);
53 | }
54 | }
55 | return obj;
56 | }
57 |
58 | /**
59 | * Validates the JSON data with respect to Bounce
.
60 | * @param {Object} data The plain JavaScript object bearing properties of interest.
61 | * @return {boolean} to indicate whether the JSON data is valid with respect to Bounce
.
62 | */
63 | static validateJSON(data) {
64 | // validate the optional field `data`
65 | if (data['data']) { // data not null
66 | BounceData.validateJSON(data['data']);
67 | }
68 |
69 | return true;
70 | }
71 |
72 |
73 | }
74 |
75 |
76 |
77 | /**
78 | * @member {module:model/BounceData} data
79 | */
80 | Bounce.prototype['data'] = undefined;
81 |
82 |
83 |
84 |
85 |
86 |
87 | export default Bounce;
88 |
89 |
--------------------------------------------------------------------------------
/src/model/BouncesGet200Response.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | import ApiClient from '../ApiClient';
15 | import BouncesGet200ResponseData from './BouncesGet200ResponseData';
16 |
17 | /**
18 | * The BouncesGet200Response model module.
19 | * @module model/BouncesGet200Response
20 | * @version 1.0.0
21 | */
22 | class BouncesGet200Response {
23 | /**
24 | * Constructs a new BouncesGet200Response
.
25 | * @alias module:model/BouncesGet200Response
26 | */
27 | constructor() {
28 |
29 | BouncesGet200Response.initialize(this);
30 | }
31 |
32 | /**
33 | * Initializes the fields of this object.
34 | * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
35 | * Only for internal use.
36 | */
37 | static initialize(obj) {
38 | }
39 |
40 | /**
41 | * Constructs a BouncesGet200Response
from a plain JavaScript object, optionally creating a new instance.
42 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
43 | * @param {Object} data The plain JavaScript object bearing properties of interest.
44 | * @param {module:model/BouncesGet200Response} obj Optional instance to populate.
45 | * @return {module:model/BouncesGet200Response} The populated BouncesGet200Response
instance.
46 | */
47 | static constructFromObject(data, obj) {
48 | if (data) {
49 | obj = obj || new BouncesGet200Response();
50 |
51 | if (data.hasOwnProperty('data')) {
52 | obj['data'] = BouncesGet200ResponseData.constructFromObject(data['data']);
53 | }
54 | }
55 | return obj;
56 | }
57 |
58 | /**
59 | * Validates the JSON data with respect to BouncesGet200Response
.
60 | * @param {Object} data The plain JavaScript object bearing properties of interest.
61 | * @return {boolean} to indicate whether the JSON data is valid with respect to BouncesGet200Response
.
62 | */
63 | static validateJSON(data) {
64 | // validate the optional field `data`
65 | if (data['data']) { // data not null
66 | BouncesGet200ResponseData.validateJSON(data['data']);
67 | }
68 |
69 | return true;
70 | }
71 |
72 |
73 | }
74 |
75 |
76 |
77 | /**
78 | * @member {module:model/BouncesGet200ResponseData} data
79 | */
80 | BouncesGet200Response.prototype['data'] = undefined;
81 |
82 |
83 |
84 |
85 |
86 |
87 | export default BouncesGet200Response;
88 |
89 |
--------------------------------------------------------------------------------
/src/model/Campaign.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | import ApiClient from '../ApiClient';
15 | import CampaignData from './CampaignData';
16 |
17 | /**
18 | * The Campaign model module.
19 | * @module model/Campaign
20 | * @version 1.0.0
21 | */
22 | class Campaign {
23 | /**
24 | * Constructs a new Campaign
.
25 | * @alias module:model/Campaign
26 | */
27 | constructor() {
28 |
29 | Campaign.initialize(this);
30 | }
31 |
32 | /**
33 | * Initializes the fields of this object.
34 | * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
35 | * Only for internal use.
36 | */
37 | static initialize(obj) {
38 | }
39 |
40 | /**
41 | * Constructs a Campaign
from a plain JavaScript object, optionally creating a new instance.
42 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
43 | * @param {Object} data The plain JavaScript object bearing properties of interest.
44 | * @param {module:model/Campaign} obj Optional instance to populate.
45 | * @return {module:model/Campaign} The populated Campaign
instance.
46 | */
47 | static constructFromObject(data, obj) {
48 | if (data) {
49 | obj = obj || new Campaign();
50 |
51 | if (data.hasOwnProperty('data')) {
52 | obj['data'] = CampaignData.constructFromObject(data['data']);
53 | }
54 | }
55 | return obj;
56 | }
57 |
58 | /**
59 | * Validates the JSON data with respect to Campaign
.
60 | * @param {Object} data The plain JavaScript object bearing properties of interest.
61 | * @return {boolean} to indicate whether the JSON data is valid with respect to Campaign
.
62 | */
63 | static validateJSON(data) {
64 | // validate the optional field `data`
65 | if (data['data']) { // data not null
66 | CampaignData.validateJSON(data['data']);
67 | }
68 |
69 | return true;
70 | }
71 |
72 |
73 | }
74 |
75 |
76 |
77 | /**
78 | * @member {module:model/CampaignData} data
79 | */
80 | Campaign.prototype['data'] = undefined;
81 |
82 |
83 |
84 |
85 |
86 |
87 | export default Campaign;
88 |
89 |
--------------------------------------------------------------------------------
/src/model/CampaignsGet200Response.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | import ApiClient from '../ApiClient';
15 | import CampaignsGet200ResponseData from './CampaignsGet200ResponseData';
16 |
17 | /**
18 | * The CampaignsGet200Response model module.
19 | * @module model/CampaignsGet200Response
20 | * @version 1.0.0
21 | */
22 | class CampaignsGet200Response {
23 | /**
24 | * Constructs a new CampaignsGet200Response
.
25 | * @alias module:model/CampaignsGet200Response
26 | */
27 | constructor() {
28 |
29 | CampaignsGet200Response.initialize(this);
30 | }
31 |
32 | /**
33 | * Initializes the fields of this object.
34 | * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
35 | * Only for internal use.
36 | */
37 | static initialize(obj) {
38 | }
39 |
40 | /**
41 | * Constructs a CampaignsGet200Response
from a plain JavaScript object, optionally creating a new instance.
42 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
43 | * @param {Object} data The plain JavaScript object bearing properties of interest.
44 | * @param {module:model/CampaignsGet200Response} obj Optional instance to populate.
45 | * @return {module:model/CampaignsGet200Response} The populated CampaignsGet200Response
instance.
46 | */
47 | static constructFromObject(data, obj) {
48 | if (data) {
49 | obj = obj || new CampaignsGet200Response();
50 |
51 | if (data.hasOwnProperty('data')) {
52 | obj['data'] = CampaignsGet200ResponseData.constructFromObject(data['data']);
53 | }
54 | }
55 | return obj;
56 | }
57 |
58 | /**
59 | * Validates the JSON data with respect to CampaignsGet200Response
.
60 | * @param {Object} data The plain JavaScript object bearing properties of interest.
61 | * @return {boolean} to indicate whether the JSON data is valid with respect to CampaignsGet200Response
.
62 | */
63 | static validateJSON(data) {
64 | // validate the optional field `data`
65 | if (data['data']) { // data not null
66 | CampaignsGet200ResponseData.validateJSON(data['data']);
67 | }
68 |
69 | return true;
70 | }
71 |
72 |
73 | }
74 |
75 |
76 |
77 | /**
78 | * @member {module:model/CampaignsGet200ResponseData} data
79 | */
80 | CampaignsGet200Response.prototype['data'] = undefined;
81 |
82 |
83 |
84 |
85 |
86 |
87 | export default CampaignsGet200Response;
88 |
89 |
--------------------------------------------------------------------------------
/src/model/DashboardChartsGet200Response.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | import ApiClient from '../ApiClient';
15 | import DashboardChartsGet200ResponseData from './DashboardChartsGet200ResponseData';
16 |
17 | /**
18 | * The DashboardChartsGet200Response model module.
19 | * @module model/DashboardChartsGet200Response
20 | * @version 1.0.0
21 | */
22 | class DashboardChartsGet200Response {
23 | /**
24 | * Constructs a new DashboardChartsGet200Response
.
25 | * @alias module:model/DashboardChartsGet200Response
26 | */
27 | constructor() {
28 |
29 | DashboardChartsGet200Response.initialize(this);
30 | }
31 |
32 | /**
33 | * Initializes the fields of this object.
34 | * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
35 | * Only for internal use.
36 | */
37 | static initialize(obj) {
38 | }
39 |
40 | /**
41 | * Constructs a DashboardChartsGet200Response
from a plain JavaScript object, optionally creating a new instance.
42 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
43 | * @param {Object} data The plain JavaScript object bearing properties of interest.
44 | * @param {module:model/DashboardChartsGet200Response} obj Optional instance to populate.
45 | * @return {module:model/DashboardChartsGet200Response} The populated DashboardChartsGet200Response
instance.
46 | */
47 | static constructFromObject(data, obj) {
48 | if (data) {
49 | obj = obj || new DashboardChartsGet200Response();
50 |
51 | if (data.hasOwnProperty('data')) {
52 | obj['data'] = DashboardChartsGet200ResponseData.constructFromObject(data['data']);
53 | }
54 | }
55 | return obj;
56 | }
57 |
58 | /**
59 | * Validates the JSON data with respect to DashboardChartsGet200Response
.
60 | * @param {Object} data The plain JavaScript object bearing properties of interest.
61 | * @return {boolean} to indicate whether the JSON data is valid with respect to DashboardChartsGet200Response
.
62 | */
63 | static validateJSON(data) {
64 | // validate the optional field `data`
65 | if (data['data']) { // data not null
66 | DashboardChartsGet200ResponseData.validateJSON(data['data']);
67 | }
68 |
69 | return true;
70 | }
71 |
72 |
73 | }
74 |
75 |
76 |
77 | /**
78 | * @member {module:model/DashboardChartsGet200ResponseData} data
79 | */
80 | DashboardChartsGet200Response.prototype['data'] = undefined;
81 |
82 |
83 |
84 |
85 |
86 |
87 | export default DashboardChartsGet200Response;
88 |
89 |
--------------------------------------------------------------------------------
/src/model/DashboardCount.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | import ApiClient from '../ApiClient';
15 | import DashboardCountData from './DashboardCountData';
16 |
17 | /**
18 | * The DashboardCount model module.
19 | * @module model/DashboardCount
20 | * @version 1.0.0
21 | */
22 | class DashboardCount {
23 | /**
24 | * Constructs a new DashboardCount
.
25 | * @alias module:model/DashboardCount
26 | */
27 | constructor() {
28 |
29 | DashboardCount.initialize(this);
30 | }
31 |
32 | /**
33 | * Initializes the fields of this object.
34 | * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
35 | * Only for internal use.
36 | */
37 | static initialize(obj) {
38 | }
39 |
40 | /**
41 | * Constructs a DashboardCount
from a plain JavaScript object, optionally creating a new instance.
42 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
43 | * @param {Object} data The plain JavaScript object bearing properties of interest.
44 | * @param {module:model/DashboardCount} obj Optional instance to populate.
45 | * @return {module:model/DashboardCount} The populated DashboardCount
instance.
46 | */
47 | static constructFromObject(data, obj) {
48 | if (data) {
49 | obj = obj || new DashboardCount();
50 |
51 | if (data.hasOwnProperty('data')) {
52 | obj['data'] = DashboardCountData.constructFromObject(data['data']);
53 | }
54 | }
55 | return obj;
56 | }
57 |
58 | /**
59 | * Validates the JSON data with respect to DashboardCount
.
60 | * @param {Object} data The plain JavaScript object bearing properties of interest.
61 | * @return {boolean} to indicate whether the JSON data is valid with respect to DashboardCount
.
62 | */
63 | static validateJSON(data) {
64 | // validate the optional field `data`
65 | if (data['data']) { // data not null
66 | DashboardCountData.validateJSON(data['data']);
67 | }
68 |
69 | return true;
70 | }
71 |
72 |
73 | }
74 |
75 |
76 |
77 | /**
78 | * @member {module:model/DashboardCountData} data
79 | */
80 | DashboardCount.prototype['data'] = undefined;
81 |
82 |
83 |
84 |
85 |
86 |
87 | export default DashboardCount;
88 |
89 |
--------------------------------------------------------------------------------
/src/model/DashboardCountDataCampaignsByStatus.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | import ApiClient from '../ApiClient';
15 |
16 | /**
17 | * The DashboardCountDataCampaignsByStatus model module.
18 | * @module model/DashboardCountDataCampaignsByStatus
19 | * @version 1.0.0
20 | */
21 | class DashboardCountDataCampaignsByStatus {
22 | /**
23 | * Constructs a new DashboardCountDataCampaignsByStatus
.
24 | * @alias module:model/DashboardCountDataCampaignsByStatus
25 | */
26 | constructor() {
27 |
28 | DashboardCountDataCampaignsByStatus.initialize(this);
29 | }
30 |
31 | /**
32 | * Initializes the fields of this object.
33 | * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
34 | * Only for internal use.
35 | */
36 | static initialize(obj) {
37 | }
38 |
39 | /**
40 | * Constructs a DashboardCountDataCampaignsByStatus
from a plain JavaScript object, optionally creating a new instance.
41 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
42 | * @param {Object} data The plain JavaScript object bearing properties of interest.
43 | * @param {module:model/DashboardCountDataCampaignsByStatus} obj Optional instance to populate.
44 | * @return {module:model/DashboardCountDataCampaignsByStatus} The populated DashboardCountDataCampaignsByStatus
instance.
45 | */
46 | static constructFromObject(data, obj) {
47 | if (data) {
48 | obj = obj || new DashboardCountDataCampaignsByStatus();
49 |
50 | if (data.hasOwnProperty('draft')) {
51 | obj['draft'] = ApiClient.convertToType(data['draft'], 'Number');
52 | }
53 | }
54 | return obj;
55 | }
56 |
57 | /**
58 | * Validates the JSON data with respect to DashboardCountDataCampaignsByStatus
.
59 | * @param {Object} data The plain JavaScript object bearing properties of interest.
60 | * @return {boolean} to indicate whether the JSON data is valid with respect to DashboardCountDataCampaignsByStatus
.
61 | */
62 | static validateJSON(data) {
63 |
64 | return true;
65 | }
66 |
67 |
68 | }
69 |
70 |
71 |
72 | /**
73 | * @member {Number} draft
74 | */
75 | DashboardCountDataCampaignsByStatus.prototype['draft'] = undefined;
76 |
77 |
78 |
79 |
80 |
81 |
82 | export default DashboardCountDataCampaignsByStatus;
83 |
84 |
--------------------------------------------------------------------------------
/src/model/HealthGet200Response.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | import ApiClient from '../ApiClient';
15 |
16 | /**
17 | * The HealthGet200Response model module.
18 | * @module model/HealthGet200Response
19 | * @version 1.0.0
20 | */
21 | class HealthGet200Response {
22 | /**
23 | * Constructs a new HealthGet200Response
.
24 | * @alias module:model/HealthGet200Response
25 | */
26 | constructor() {
27 |
28 | HealthGet200Response.initialize(this);
29 | }
30 |
31 | /**
32 | * Initializes the fields of this object.
33 | * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
34 | * Only for internal use.
35 | */
36 | static initialize(obj) {
37 | }
38 |
39 | /**
40 | * Constructs a HealthGet200Response
from a plain JavaScript object, optionally creating a new instance.
41 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
42 | * @param {Object} data The plain JavaScript object bearing properties of interest.
43 | * @param {module:model/HealthGet200Response} obj Optional instance to populate.
44 | * @return {module:model/HealthGet200Response} The populated HealthGet200Response
instance.
45 | */
46 | static constructFromObject(data, obj) {
47 | if (data) {
48 | obj = obj || new HealthGet200Response();
49 |
50 | if (data.hasOwnProperty('data')) {
51 | obj['data'] = ApiClient.convertToType(data['data'], 'Boolean');
52 | }
53 | }
54 | return obj;
55 | }
56 |
57 | /**
58 | * Validates the JSON data with respect to HealthGet200Response
.
59 | * @param {Object} data The plain JavaScript object bearing properties of interest.
60 | * @return {boolean} to indicate whether the JSON data is valid with respect to HealthGet200Response
.
61 | */
62 | static validateJSON(data) {
63 |
64 | return true;
65 | }
66 |
67 |
68 | }
69 |
70 |
71 |
72 | /**
73 | * @member {Boolean} data
74 | */
75 | HealthGet200Response.prototype['data'] = undefined;
76 |
77 |
78 |
79 |
80 |
81 |
82 | export default HealthGet200Response;
83 |
84 |
--------------------------------------------------------------------------------
/src/model/ImportStatus.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | import ApiClient from '../ApiClient';
15 | import ImportStatusData from './ImportStatusData';
16 |
17 | /**
18 | * The ImportStatus model module.
19 | * @module model/ImportStatus
20 | * @version 1.0.0
21 | */
22 | class ImportStatus {
23 | /**
24 | * Constructs a new ImportStatus
.
25 | * @alias module:model/ImportStatus
26 | */
27 | constructor() {
28 |
29 | ImportStatus.initialize(this);
30 | }
31 |
32 | /**
33 | * Initializes the fields of this object.
34 | * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
35 | * Only for internal use.
36 | */
37 | static initialize(obj) {
38 | }
39 |
40 | /**
41 | * Constructs a ImportStatus
from a plain JavaScript object, optionally creating a new instance.
42 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
43 | * @param {Object} data The plain JavaScript object bearing properties of interest.
44 | * @param {module:model/ImportStatus} obj Optional instance to populate.
45 | * @return {module:model/ImportStatus} The populated ImportStatus
instance.
46 | */
47 | static constructFromObject(data, obj) {
48 | if (data) {
49 | obj = obj || new ImportStatus();
50 |
51 | if (data.hasOwnProperty('data')) {
52 | obj['data'] = ImportStatusData.constructFromObject(data['data']);
53 | }
54 | }
55 | return obj;
56 | }
57 |
58 | /**
59 | * Validates the JSON data with respect to ImportStatus
.
60 | * @param {Object} data The plain JavaScript object bearing properties of interest.
61 | * @return {boolean} to indicate whether the JSON data is valid with respect to ImportStatus
.
62 | */
63 | static validateJSON(data) {
64 | // validate the optional field `data`
65 | if (data['data']) { // data not null
66 | ImportStatusData.validateJSON(data['data']);
67 | }
68 |
69 | return true;
70 | }
71 |
72 |
73 | }
74 |
75 |
76 |
77 | /**
78 | * @member {module:model/ImportStatusData} data
79 | */
80 | ImportStatus.prototype['data'] = undefined;
81 |
82 |
83 |
84 |
85 |
86 |
87 | export default ImportStatus;
88 |
89 |
--------------------------------------------------------------------------------
/src/model/LanguagePack.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | import ApiClient from '../ApiClient';
15 | import LanguagePackData from './LanguagePackData';
16 |
17 | /**
18 | * The LanguagePack model module.
19 | * @module model/LanguagePack
20 | * @version 1.0.0
21 | */
22 | class LanguagePack {
23 | /**
24 | * Constructs a new LanguagePack
.
25 | * @alias module:model/LanguagePack
26 | */
27 | constructor() {
28 |
29 | LanguagePack.initialize(this);
30 | }
31 |
32 | /**
33 | * Initializes the fields of this object.
34 | * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
35 | * Only for internal use.
36 | */
37 | static initialize(obj) {
38 | }
39 |
40 | /**
41 | * Constructs a LanguagePack
from a plain JavaScript object, optionally creating a new instance.
42 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
43 | * @param {Object} data The plain JavaScript object bearing properties of interest.
44 | * @param {module:model/LanguagePack} obj Optional instance to populate.
45 | * @return {module:model/LanguagePack} The populated LanguagePack
instance.
46 | */
47 | static constructFromObject(data, obj) {
48 | if (data) {
49 | obj = obj || new LanguagePack();
50 |
51 | if (data.hasOwnProperty('data')) {
52 | obj['data'] = LanguagePackData.constructFromObject(data['data']);
53 | }
54 | }
55 | return obj;
56 | }
57 |
58 | /**
59 | * Validates the JSON data with respect to LanguagePack
.
60 | * @param {Object} data The plain JavaScript object bearing properties of interest.
61 | * @return {boolean} to indicate whether the JSON data is valid with respect to LanguagePack
.
62 | */
63 | static validateJSON(data) {
64 | // validate the optional field `data`
65 | if (data['data']) { // data not null
66 | LanguagePackData.validateJSON(data['data']);
67 | }
68 |
69 | return true;
70 | }
71 |
72 |
73 | }
74 |
75 |
76 |
77 | /**
78 | * @member {module:model/LanguagePackData} data
79 | */
80 | LanguagePack.prototype['data'] = undefined;
81 |
82 |
83 |
84 |
85 |
86 |
87 | export default LanguagePack;
88 |
89 |
--------------------------------------------------------------------------------
/src/model/ListsGet200Response.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | import ApiClient from '../ApiClient';
15 | import ListsGet200ResponseData from './ListsGet200ResponseData';
16 |
17 | /**
18 | * The ListsGet200Response model module.
19 | * @module model/ListsGet200Response
20 | * @version 1.0.0
21 | */
22 | class ListsGet200Response {
23 | /**
24 | * Constructs a new ListsGet200Response
.
25 | * @alias module:model/ListsGet200Response
26 | */
27 | constructor() {
28 |
29 | ListsGet200Response.initialize(this);
30 | }
31 |
32 | /**
33 | * Initializes the fields of this object.
34 | * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
35 | * Only for internal use.
36 | */
37 | static initialize(obj) {
38 | }
39 |
40 | /**
41 | * Constructs a ListsGet200Response
from a plain JavaScript object, optionally creating a new instance.
42 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
43 | * @param {Object} data The plain JavaScript object bearing properties of interest.
44 | * @param {module:model/ListsGet200Response} obj Optional instance to populate.
45 | * @return {module:model/ListsGet200Response} The populated ListsGet200Response
instance.
46 | */
47 | static constructFromObject(data, obj) {
48 | if (data) {
49 | obj = obj || new ListsGet200Response();
50 |
51 | if (data.hasOwnProperty('data')) {
52 | obj['data'] = ListsGet200ResponseData.constructFromObject(data['data']);
53 | }
54 | }
55 | return obj;
56 | }
57 |
58 | /**
59 | * Validates the JSON data with respect to ListsGet200Response
.
60 | * @param {Object} data The plain JavaScript object bearing properties of interest.
61 | * @return {boolean} to indicate whether the JSON data is valid with respect to ListsGet200Response
.
62 | */
63 | static validateJSON(data) {
64 | // validate the optional field `data`
65 | if (data['data']) { // data not null
66 | ListsGet200ResponseData.validateJSON(data['data']);
67 | }
68 |
69 | return true;
70 | }
71 |
72 |
73 | }
74 |
75 |
76 |
77 | /**
78 | * @member {module:model/ListsGet200ResponseData} data
79 | */
80 | ListsGet200Response.prototype['data'] = undefined;
81 |
82 |
83 |
84 |
85 |
86 |
87 | export default ListsGet200Response;
88 |
89 |
--------------------------------------------------------------------------------
/src/model/LogsGet200Response.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | import ApiClient from '../ApiClient';
15 |
16 | /**
17 | * The LogsGet200Response model module.
18 | * @module model/LogsGet200Response
19 | * @version 1.0.0
20 | */
21 | class LogsGet200Response {
22 | /**
23 | * Constructs a new LogsGet200Response
.
24 | * @alias module:model/LogsGet200Response
25 | */
26 | constructor() {
27 |
28 | LogsGet200Response.initialize(this);
29 | }
30 |
31 | /**
32 | * Initializes the fields of this object.
33 | * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
34 | * Only for internal use.
35 | */
36 | static initialize(obj) {
37 | }
38 |
39 | /**
40 | * Constructs a LogsGet200Response
from a plain JavaScript object, optionally creating a new instance.
41 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
42 | * @param {Object} data The plain JavaScript object bearing properties of interest.
43 | * @param {module:model/LogsGet200Response} obj Optional instance to populate.
44 | * @return {module:model/LogsGet200Response} The populated LogsGet200Response
instance.
45 | */
46 | static constructFromObject(data, obj) {
47 | if (data) {
48 | obj = obj || new LogsGet200Response();
49 |
50 | if (data.hasOwnProperty('data')) {
51 | obj['data'] = ApiClient.convertToType(data['data'], ['String']);
52 | }
53 | }
54 | return obj;
55 | }
56 |
57 | /**
58 | * Validates the JSON data with respect to LogsGet200Response
.
59 | * @param {Object} data The plain JavaScript object bearing properties of interest.
60 | * @return {boolean} to indicate whether the JSON data is valid with respect to LogsGet200Response
.
61 | */
62 | static validateJSON(data) {
63 | // ensure the json data is an array
64 | if (!Array.isArray(data['data'])) {
65 | throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
66 | }
67 |
68 | return true;
69 | }
70 |
71 |
72 | }
73 |
74 |
75 |
76 | /**
77 | * @member {Array.} data
78 | */
79 | LogsGet200Response.prototype['data'] = undefined;
80 |
81 |
82 |
83 |
84 |
85 |
86 | export default LogsGet200Response;
87 |
88 |
--------------------------------------------------------------------------------
/src/model/MaintenanceSubscribersTypeDelete200ResponseData.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | import ApiClient from '../ApiClient';
15 |
16 | /**
17 | * The MaintenanceSubscribersTypeDelete200ResponseData model module.
18 | * @module model/MaintenanceSubscribersTypeDelete200ResponseData
19 | * @version 1.0.0
20 | */
21 | class MaintenanceSubscribersTypeDelete200ResponseData {
22 | /**
23 | * Constructs a new MaintenanceSubscribersTypeDelete200ResponseData
.
24 | * @alias module:model/MaintenanceSubscribersTypeDelete200ResponseData
25 | */
26 | constructor() {
27 |
28 | MaintenanceSubscribersTypeDelete200ResponseData.initialize(this);
29 | }
30 |
31 | /**
32 | * Initializes the fields of this object.
33 | * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
34 | * Only for internal use.
35 | */
36 | static initialize(obj) {
37 | }
38 |
39 | /**
40 | * Constructs a MaintenanceSubscribersTypeDelete200ResponseData
from a plain JavaScript object, optionally creating a new instance.
41 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
42 | * @param {Object} data The plain JavaScript object bearing properties of interest.
43 | * @param {module:model/MaintenanceSubscribersTypeDelete200ResponseData} obj Optional instance to populate.
44 | * @return {module:model/MaintenanceSubscribersTypeDelete200ResponseData} The populated MaintenanceSubscribersTypeDelete200ResponseData
instance.
45 | */
46 | static constructFromObject(data, obj) {
47 | if (data) {
48 | obj = obj || new MaintenanceSubscribersTypeDelete200ResponseData();
49 |
50 | if (data.hasOwnProperty('count')) {
51 | obj['count'] = ApiClient.convertToType(data['count'], 'Number');
52 | }
53 | }
54 | return obj;
55 | }
56 |
57 | /**
58 | * Validates the JSON data with respect to MaintenanceSubscribersTypeDelete200ResponseData
.
59 | * @param {Object} data The plain JavaScript object bearing properties of interest.
60 | * @return {boolean} to indicate whether the JSON data is valid with respect to MaintenanceSubscribersTypeDelete200ResponseData
.
61 | */
62 | static validateJSON(data) {
63 |
64 | return true;
65 | }
66 |
67 |
68 | }
69 |
70 |
71 |
72 | /**
73 | * @member {Number} count
74 | */
75 | MaintenanceSubscribersTypeDelete200ResponseData.prototype['count'] = undefined;
76 |
77 |
78 |
79 |
80 |
81 |
82 | export default MaintenanceSubscribersTypeDelete200ResponseData;
83 |
84 |
--------------------------------------------------------------------------------
/src/model/NewCampaign.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | import ApiClient from '../ApiClient';
15 | import NewCampaignData from './NewCampaignData';
16 |
17 | /**
18 | * The NewCampaign model module.
19 | * @module model/NewCampaign
20 | * @version 1.0.0
21 | */
22 | class NewCampaign {
23 | /**
24 | * Constructs a new NewCampaign
.
25 | * @alias module:model/NewCampaign
26 | */
27 | constructor() {
28 |
29 | NewCampaign.initialize(this);
30 | }
31 |
32 | /**
33 | * Initializes the fields of this object.
34 | * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
35 | * Only for internal use.
36 | */
37 | static initialize(obj) {
38 | }
39 |
40 | /**
41 | * Constructs a NewCampaign
from a plain JavaScript object, optionally creating a new instance.
42 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
43 | * @param {Object} data The plain JavaScript object bearing properties of interest.
44 | * @param {module:model/NewCampaign} obj Optional instance to populate.
45 | * @return {module:model/NewCampaign} The populated NewCampaign
instance.
46 | */
47 | static constructFromObject(data, obj) {
48 | if (data) {
49 | obj = obj || new NewCampaign();
50 |
51 | if (data.hasOwnProperty('data')) {
52 | obj['data'] = NewCampaignData.constructFromObject(data['data']);
53 | }
54 | }
55 | return obj;
56 | }
57 |
58 | /**
59 | * Validates the JSON data with respect to NewCampaign
.
60 | * @param {Object} data The plain JavaScript object bearing properties of interest.
61 | * @return {boolean} to indicate whether the JSON data is valid with respect to NewCampaign
.
62 | */
63 | static validateJSON(data) {
64 | // validate the optional field `data`
65 | if (data['data']) { // data not null
66 | NewCampaignData.validateJSON(data['data']);
67 | }
68 |
69 | return true;
70 | }
71 |
72 |
73 | }
74 |
75 |
76 |
77 | /**
78 | * @member {module:model/NewCampaignData} data
79 | */
80 | NewCampaign.prototype['data'] = undefined;
81 |
82 |
83 |
84 |
85 |
86 |
87 | export default NewCampaign;
88 |
89 |
--------------------------------------------------------------------------------
/src/model/ServerConfig.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | import ApiClient from '../ApiClient';
15 | import ServerConfigData from './ServerConfigData';
16 |
17 | /**
18 | * The ServerConfig model module.
19 | * @module model/ServerConfig
20 | * @version 1.0.0
21 | */
22 | class ServerConfig {
23 | /**
24 | * Constructs a new ServerConfig
.
25 | * @alias module:model/ServerConfig
26 | */
27 | constructor() {
28 |
29 | ServerConfig.initialize(this);
30 | }
31 |
32 | /**
33 | * Initializes the fields of this object.
34 | * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
35 | * Only for internal use.
36 | */
37 | static initialize(obj) {
38 | }
39 |
40 | /**
41 | * Constructs a ServerConfig
from a plain JavaScript object, optionally creating a new instance.
42 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
43 | * @param {Object} data The plain JavaScript object bearing properties of interest.
44 | * @param {module:model/ServerConfig} obj Optional instance to populate.
45 | * @return {module:model/ServerConfig} The populated ServerConfig
instance.
46 | */
47 | static constructFromObject(data, obj) {
48 | if (data) {
49 | obj = obj || new ServerConfig();
50 |
51 | if (data.hasOwnProperty('data')) {
52 | obj['data'] = ServerConfigData.constructFromObject(data['data']);
53 | }
54 | }
55 | return obj;
56 | }
57 |
58 | /**
59 | * Validates the JSON data with respect to ServerConfig
.
60 | * @param {Object} data The plain JavaScript object bearing properties of interest.
61 | * @return {boolean} to indicate whether the JSON data is valid with respect to ServerConfig
.
62 | */
63 | static validateJSON(data) {
64 | // validate the optional field `data`
65 | if (data['data']) { // data not null
66 | ServerConfigData.validateJSON(data['data']);
67 | }
68 |
69 | return true;
70 | }
71 |
72 |
73 | }
74 |
75 |
76 |
77 | /**
78 | * @member {module:model/ServerConfigData} data
79 | */
80 | ServerConfig.prototype['data'] = undefined;
81 |
82 |
83 |
84 |
85 |
86 |
87 | export default ServerConfig;
88 |
89 |
--------------------------------------------------------------------------------
/src/model/Settings.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | import ApiClient from '../ApiClient';
15 | import SettingsData from './SettingsData';
16 |
17 | /**
18 | * The Settings model module.
19 | * @module model/Settings
20 | * @version 1.0.0
21 | */
22 | class Settings {
23 | /**
24 | * Constructs a new Settings
.
25 | * @alias module:model/Settings
26 | */
27 | constructor() {
28 |
29 | Settings.initialize(this);
30 | }
31 |
32 | /**
33 | * Initializes the fields of this object.
34 | * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
35 | * Only for internal use.
36 | */
37 | static initialize(obj) {
38 | }
39 |
40 | /**
41 | * Constructs a Settings
from a plain JavaScript object, optionally creating a new instance.
42 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
43 | * @param {Object} data The plain JavaScript object bearing properties of interest.
44 | * @param {module:model/Settings} obj Optional instance to populate.
45 | * @return {module:model/Settings} The populated Settings
instance.
46 | */
47 | static constructFromObject(data, obj) {
48 | if (data) {
49 | obj = obj || new Settings();
50 |
51 | if (data.hasOwnProperty('data')) {
52 | obj['data'] = SettingsData.constructFromObject(data['data']);
53 | }
54 | }
55 | return obj;
56 | }
57 |
58 | /**
59 | * Validates the JSON data with respect to Settings
.
60 | * @param {Object} data The plain JavaScript object bearing properties of interest.
61 | * @return {boolean} to indicate whether the JSON data is valid with respect to Settings
.
62 | */
63 | static validateJSON(data) {
64 | // validate the optional field `data`
65 | if (data['data']) { // data not null
66 | SettingsData.validateJSON(data['data']);
67 | }
68 |
69 | return true;
70 | }
71 |
72 |
73 | }
74 |
75 |
76 |
77 | /**
78 | * @member {module:model/SettingsData} data
79 | */
80 | Settings.prototype['data'] = undefined;
81 |
82 |
83 |
84 |
85 |
86 |
87 | export default Settings;
88 |
89 |
--------------------------------------------------------------------------------
/src/model/SubscribersGet200Response.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | import ApiClient from '../ApiClient';
15 | import SubscribersGet200ResponseData from './SubscribersGet200ResponseData';
16 |
17 | /**
18 | * The SubscribersGet200Response model module.
19 | * @module model/SubscribersGet200Response
20 | * @version 1.0.0
21 | */
22 | class SubscribersGet200Response {
23 | /**
24 | * Constructs a new SubscribersGet200Response
.
25 | * @alias module:model/SubscribersGet200Response
26 | */
27 | constructor() {
28 |
29 | SubscribersGet200Response.initialize(this);
30 | }
31 |
32 | /**
33 | * Initializes the fields of this object.
34 | * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
35 | * Only for internal use.
36 | */
37 | static initialize(obj) {
38 | }
39 |
40 | /**
41 | * Constructs a SubscribersGet200Response
from a plain JavaScript object, optionally creating a new instance.
42 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
43 | * @param {Object} data The plain JavaScript object bearing properties of interest.
44 | * @param {module:model/SubscribersGet200Response} obj Optional instance to populate.
45 | * @return {module:model/SubscribersGet200Response} The populated SubscribersGet200Response
instance.
46 | */
47 | static constructFromObject(data, obj) {
48 | if (data) {
49 | obj = obj || new SubscribersGet200Response();
50 |
51 | if (data.hasOwnProperty('data')) {
52 | obj['data'] = SubscribersGet200ResponseData.constructFromObject(data['data']);
53 | }
54 | }
55 | return obj;
56 | }
57 |
58 | /**
59 | * Validates the JSON data with respect to SubscribersGet200Response
.
60 | * @param {Object} data The plain JavaScript object bearing properties of interest.
61 | * @return {boolean} to indicate whether the JSON data is valid with respect to SubscribersGet200Response
.
62 | */
63 | static validateJSON(data) {
64 | // validate the optional field `data`
65 | if (data['data']) { // data not null
66 | SubscribersGet200ResponseData.validateJSON(data['data']);
67 | }
68 |
69 | return true;
70 | }
71 |
72 |
73 | }
74 |
75 |
76 |
77 | /**
78 | * @member {module:model/SubscribersGet200ResponseData} data
79 | */
80 | SubscribersGet200Response.prototype['data'] = undefined;
81 |
82 |
83 |
84 |
85 |
86 |
87 | export default SubscribersGet200Response;
88 |
89 |
--------------------------------------------------------------------------------
/src/model/SubscribersIdBouncesGet200Response.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | import ApiClient from '../ApiClient';
15 |
16 | /**
17 | * The SubscribersIdBouncesGet200Response model module.
18 | * @module model/SubscribersIdBouncesGet200Response
19 | * @version 1.0.0
20 | */
21 | class SubscribersIdBouncesGet200Response {
22 | /**
23 | * Constructs a new SubscribersIdBouncesGet200Response
.
24 | * @alias module:model/SubscribersIdBouncesGet200Response
25 | */
26 | constructor() {
27 |
28 | SubscribersIdBouncesGet200Response.initialize(this);
29 | }
30 |
31 | /**
32 | * Initializes the fields of this object.
33 | * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
34 | * Only for internal use.
35 | */
36 | static initialize(obj) {
37 | }
38 |
39 | /**
40 | * Constructs a SubscribersIdBouncesGet200Response
from a plain JavaScript object, optionally creating a new instance.
41 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
42 | * @param {Object} data The plain JavaScript object bearing properties of interest.
43 | * @param {module:model/SubscribersIdBouncesGet200Response} obj Optional instance to populate.
44 | * @return {module:model/SubscribersIdBouncesGet200Response} The populated SubscribersIdBouncesGet200Response
instance.
45 | */
46 | static constructFromObject(data, obj) {
47 | if (data) {
48 | obj = obj || new SubscribersIdBouncesGet200Response();
49 |
50 | if (data.hasOwnProperty('data')) {
51 | obj['data'] = ApiClient.convertToType(data['data'], Array);
52 | }
53 | }
54 | return obj;
55 | }
56 |
57 | /**
58 | * Validates the JSON data with respect to SubscribersIdBouncesGet200Response
.
59 | * @param {Object} data The plain JavaScript object bearing properties of interest.
60 | * @return {boolean} to indicate whether the JSON data is valid with respect to SubscribersIdBouncesGet200Response
.
61 | */
62 | static validateJSON(data) {
63 |
64 | return true;
65 | }
66 |
67 |
68 | }
69 |
70 |
71 |
72 | /**
73 | * @member {Array} data
74 | */
75 | SubscribersIdBouncesGet200Response.prototype['data'] = undefined;
76 |
77 |
78 |
79 |
80 |
81 |
82 | export default SubscribersIdBouncesGet200Response;
83 |
84 |
--------------------------------------------------------------------------------
/test/api/AdminApi.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.AdminApi();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('AdminApi', function() {
51 | describe('adminReloadPost', function() {
52 | it('should call adminReloadPost successfully', function(done) {
53 | //uncomment below and update the code to test adminReloadPost
54 | //instance.adminReloadPost(function(error) {
55 | // if (error) throw error;
56 | //expect().to.be();
57 | //});
58 | done();
59 | });
60 | });
61 | });
62 |
63 | }));
64 |
--------------------------------------------------------------------------------
/test/api/LogsApi.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.LogsApi();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('LogsApi', function() {
51 | describe('logsGet', function() {
52 | it('should call logsGet successfully', function(done) {
53 | //uncomment below and update the code to test logsGet
54 | //instance.logsGet(function(error) {
55 | // if (error) throw error;
56 | //expect().to.be();
57 | //});
58 | done();
59 | });
60 | });
61 | });
62 |
63 | }));
64 |
--------------------------------------------------------------------------------
/test/api/MaintenanceApi.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.MaintenanceApi();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('MaintenanceApi', function() {
51 | describe('maintenanceAnalyticsTypeDelete', function() {
52 | it('should call maintenanceAnalyticsTypeDelete successfully', function(done) {
53 | //uncomment below and update the code to test maintenanceAnalyticsTypeDelete
54 | //instance.maintenanceAnalyticsTypeDelete(function(error) {
55 | // if (error) throw error;
56 | //expect().to.be();
57 | //});
58 | done();
59 | });
60 | });
61 | describe('maintenanceSubscribersTypeDelete', function() {
62 | it('should call maintenanceSubscribersTypeDelete successfully', function(done) {
63 | //uncomment below and update the code to test maintenanceSubscribersTypeDelete
64 | //instance.maintenanceSubscribersTypeDelete(function(error) {
65 | // if (error) throw error;
66 | //expect().to.be();
67 | //});
68 | done();
69 | });
70 | });
71 | describe('maintenanceSubscriptionsUnconfirmedDelete', function() {
72 | it('should call maintenanceSubscriptionsUnconfirmedDelete successfully', function(done) {
73 | //uncomment below and update the code to test maintenanceSubscriptionsUnconfirmedDelete
74 | //instance.maintenanceSubscriptionsUnconfirmedDelete(function(error) {
75 | // if (error) throw error;
76 | //expect().to.be();
77 | //});
78 | done();
79 | });
80 | });
81 | });
82 |
83 | }));
84 |
--------------------------------------------------------------------------------
/test/api/PublicApi.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.PublicApi();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('PublicApi', function() {
51 | describe('publicListsGet', function() {
52 | it('should call publicListsGet successfully', function(done) {
53 | //uncomment below and update the code to test publicListsGet
54 | //instance.publicListsGet(function(error) {
55 | // if (error) throw error;
56 | //expect().to.be();
57 | //});
58 | done();
59 | });
60 | });
61 | describe('publicSubscriptionPost', function() {
62 | it('should call publicSubscriptionPost successfully', function(done) {
63 | //uncomment below and update the code to test publicSubscriptionPost
64 | //instance.publicSubscriptionPost(function(error) {
65 | // if (error) throw error;
66 | //expect().to.be();
67 | //});
68 | done();
69 | });
70 | });
71 | });
72 |
73 | }));
74 |
--------------------------------------------------------------------------------
/test/api/SettingsApi.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.SettingsApi();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('SettingsApi', function() {
51 | describe('settingsGet', function() {
52 | it('should call settingsGet successfully', function(done) {
53 | //uncomment below and update the code to test settingsGet
54 | //instance.settingsGet(function(error) {
55 | // if (error) throw error;
56 | //expect().to.be();
57 | //});
58 | done();
59 | });
60 | });
61 | describe('settingsPut', function() {
62 | it('should call settingsPut successfully', function(done) {
63 | //uncomment below and update the code to test settingsPut
64 | //instance.settingsPut(function(error) {
65 | // if (error) throw error;
66 | //expect().to.be();
67 | //});
68 | done();
69 | });
70 | });
71 | describe('settingsSmtpTestPost', function() {
72 | it('should call settingsSmtpTestPost successfully', function(done) {
73 | //uncomment below and update the code to test settingsSmtpTestPost
74 | //instance.settingsSmtpTestPost(function(error) {
75 | // if (error) throw error;
76 | //expect().to.be();
77 | //});
78 | done();
79 | });
80 | });
81 | });
82 |
83 | }));
84 |
--------------------------------------------------------------------------------
/test/api/TransactionalApi.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.TransactionalApi();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('TransactionalApi', function() {
51 | describe('transactionalPost', function() {
52 | it('should call transactionalPost successfully', function(done) {
53 | //uncomment below and update the code to test transactionalPost
54 | //instance.transactionalPost(function(error) {
55 | // if (error) throw error;
56 | //expect().to.be();
57 | //});
58 | done();
59 | });
60 | });
61 | });
62 |
63 | }));
64 |
--------------------------------------------------------------------------------
/test/model/Bounce.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.Bounce();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('Bounce', function() {
51 | it('should create an instance of Bounce', function() {
52 | // uncomment below and update the code to test Bounce
53 | //var instance = new Listmonk.Bounce();
54 | //expect(instance).to.be.a(Listmonk.Bounce);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.Bounce();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/BounceDataResultsInnerCampaign.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.BounceDataResultsInnerCampaign();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('BounceDataResultsInnerCampaign', function() {
51 | it('should create an instance of BounceDataResultsInnerCampaign', function() {
52 | // uncomment below and update the code to test BounceDataResultsInnerCampaign
53 | //var instance = new Listmonk.BounceDataResultsInnerCampaign();
54 | //expect(instance).to.be.a(Listmonk.BounceDataResultsInnerCampaign);
55 | });
56 |
57 | it('should have the property id (base name: "id")', function() {
58 | // uncomment below and update the code to test the property id
59 | //var instance = new Listmonk.BounceDataResultsInnerCampaign();
60 | //expect(instance).to.be();
61 | });
62 |
63 | it('should have the property name (base name: "name")', function() {
64 | // uncomment below and update the code to test the property name
65 | //var instance = new Listmonk.BounceDataResultsInnerCampaign();
66 | //expect(instance).to.be();
67 | });
68 |
69 | });
70 |
71 | }));
72 |
--------------------------------------------------------------------------------
/test/model/BouncesGet200Response.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.BouncesGet200Response();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('BouncesGet200Response', function() {
51 | it('should create an instance of BouncesGet200Response', function() {
52 | // uncomment below and update the code to test BouncesGet200Response
53 | //var instance = new Listmonk.BouncesGet200Response();
54 | //expect(instance).to.be.a(Listmonk.BouncesGet200Response);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.BouncesGet200Response();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/Campaign.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.Campaign();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('Campaign', function() {
51 | it('should create an instance of Campaign', function() {
52 | // uncomment below and update the code to test Campaign
53 | //var instance = new Listmonk.Campaign();
54 | //expect(instance).to.be.a(Listmonk.Campaign);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.Campaign();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/CampaignsCampaignIdStatusPutRequest.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.CampaignsCampaignIdStatusPutRequest();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('CampaignsCampaignIdStatusPutRequest', function() {
51 | it('should create an instance of CampaignsCampaignIdStatusPutRequest', function() {
52 | // uncomment below and update the code to test CampaignsCampaignIdStatusPutRequest
53 | //var instance = new Listmonk.CampaignsCampaignIdStatusPutRequest();
54 | //expect(instance).to.be.a(Listmonk.CampaignsCampaignIdStatusPutRequest);
55 | });
56 |
57 | it('should have the property status (base name: "status")', function() {
58 | // uncomment below and update the code to test the property status
59 | //var instance = new Listmonk.CampaignsCampaignIdStatusPutRequest();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/CampaignsGet200Response.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.CampaignsGet200Response();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('CampaignsGet200Response', function() {
51 | it('should create an instance of CampaignsGet200Response', function() {
52 | // uncomment below and update the code to test CampaignsGet200Response
53 | //var instance = new Listmonk.CampaignsGet200Response();
54 | //expect(instance).to.be.a(Listmonk.CampaignsGet200Response);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.CampaignsGet200Response();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/DashboardChartsGet200Response.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.DashboardChartsGet200Response();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('DashboardChartsGet200Response', function() {
51 | it('should create an instance of DashboardChartsGet200Response', function() {
52 | // uncomment below and update the code to test DashboardChartsGet200Response
53 | //var instance = new Listmonk.DashboardChartsGet200Response();
54 | //expect(instance).to.be.a(Listmonk.DashboardChartsGet200Response);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.DashboardChartsGet200Response();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/DashboardChartsGet200ResponseData.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.DashboardChartsGet200ResponseData();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('DashboardChartsGet200ResponseData', function() {
51 | it('should create an instance of DashboardChartsGet200ResponseData', function() {
52 | // uncomment below and update the code to test DashboardChartsGet200ResponseData
53 | //var instance = new Listmonk.DashboardChartsGet200ResponseData();
54 | //expect(instance).to.be.a(Listmonk.DashboardChartsGet200ResponseData);
55 | });
56 |
57 | it('should have the property linkClicks (base name: "link_clicks")', function() {
58 | // uncomment below and update the code to test the property linkClicks
59 | //var instance = new Listmonk.DashboardChartsGet200ResponseData();
60 | //expect(instance).to.be();
61 | });
62 |
63 | it('should have the property campaignViews (base name: "campaign_views")', function() {
64 | // uncomment below and update the code to test the property campaignViews
65 | //var instance = new Listmonk.DashboardChartsGet200ResponseData();
66 | //expect(instance).to.be();
67 | });
68 |
69 | });
70 |
71 | }));
72 |
--------------------------------------------------------------------------------
/test/model/DashboardChartsGet200ResponseDataLinkClicksInner.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.DashboardChartsGet200ResponseDataLinkClicksInner();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('DashboardChartsGet200ResponseDataLinkClicksInner', function() {
51 | it('should create an instance of DashboardChartsGet200ResponseDataLinkClicksInner', function() {
52 | // uncomment below and update the code to test DashboardChartsGet200ResponseDataLinkClicksInner
53 | //var instance = new Listmonk.DashboardChartsGet200ResponseDataLinkClicksInner();
54 | //expect(instance).to.be.a(Listmonk.DashboardChartsGet200ResponseDataLinkClicksInner);
55 | });
56 |
57 | it('should have the property count (base name: "count")', function() {
58 | // uncomment below and update the code to test the property count
59 | //var instance = new Listmonk.DashboardChartsGet200ResponseDataLinkClicksInner();
60 | //expect(instance).to.be();
61 | });
62 |
63 | it('should have the property date (base name: "date")', function() {
64 | // uncomment below and update the code to test the property date
65 | //var instance = new Listmonk.DashboardChartsGet200ResponseDataLinkClicksInner();
66 | //expect(instance).to.be();
67 | });
68 |
69 | });
70 |
71 | }));
72 |
--------------------------------------------------------------------------------
/test/model/DashboardCount.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.DashboardCount();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('DashboardCount', function() {
51 | it('should create an instance of DashboardCount', function() {
52 | // uncomment below and update the code to test DashboardCount
53 | //var instance = new Listmonk.DashboardCount();
54 | //expect(instance).to.be.a(Listmonk.DashboardCount);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.DashboardCount();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/DashboardCountDataCampaigns.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.DashboardCountDataCampaigns();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('DashboardCountDataCampaigns', function() {
51 | it('should create an instance of DashboardCountDataCampaigns', function() {
52 | // uncomment below and update the code to test DashboardCountDataCampaigns
53 | //var instance = new Listmonk.DashboardCountDataCampaigns();
54 | //expect(instance).to.be.a(Listmonk.DashboardCountDataCampaigns);
55 | });
56 |
57 | it('should have the property total (base name: "total")', function() {
58 | // uncomment below and update the code to test the property total
59 | //var instance = new Listmonk.DashboardCountDataCampaigns();
60 | //expect(instance).to.be();
61 | });
62 |
63 | it('should have the property byStatus (base name: "by_status")', function() {
64 | // uncomment below and update the code to test the property byStatus
65 | //var instance = new Listmonk.DashboardCountDataCampaigns();
66 | //expect(instance).to.be();
67 | });
68 |
69 | });
70 |
71 | }));
72 |
--------------------------------------------------------------------------------
/test/model/DashboardCountDataCampaignsByStatus.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.DashboardCountDataCampaignsByStatus();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('DashboardCountDataCampaignsByStatus', function() {
51 | it('should create an instance of DashboardCountDataCampaignsByStatus', function() {
52 | // uncomment below and update the code to test DashboardCountDataCampaignsByStatus
53 | //var instance = new Listmonk.DashboardCountDataCampaignsByStatus();
54 | //expect(instance).to.be.a(Listmonk.DashboardCountDataCampaignsByStatus);
55 | });
56 |
57 | it('should have the property draft (base name: "draft")', function() {
58 | // uncomment below and update the code to test the property draft
59 | //var instance = new Listmonk.DashboardCountDataCampaignsByStatus();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/DashboardCountDataSubscribers.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.DashboardCountDataSubscribers();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('DashboardCountDataSubscribers', function() {
51 | it('should create an instance of DashboardCountDataSubscribers', function() {
52 | // uncomment below and update the code to test DashboardCountDataSubscribers
53 | //var instance = new Listmonk.DashboardCountDataSubscribers();
54 | //expect(instance).to.be.a(Listmonk.DashboardCountDataSubscribers);
55 | });
56 |
57 | it('should have the property total (base name: "total")', function() {
58 | // uncomment below and update the code to test the property total
59 | //var instance = new Listmonk.DashboardCountDataSubscribers();
60 | //expect(instance).to.be();
61 | });
62 |
63 | it('should have the property blocklisted (base name: "blocklisted")', function() {
64 | // uncomment below and update the code to test the property blocklisted
65 | //var instance = new Listmonk.DashboardCountDataSubscribers();
66 | //expect(instance).to.be();
67 | });
68 |
69 | it('should have the property orphans (base name: "orphans")', function() {
70 | // uncomment below and update the code to test the property orphans
71 | //var instance = new Listmonk.DashboardCountDataSubscribers();
72 | //expect(instance).to.be();
73 | });
74 |
75 | });
76 |
77 | }));
78 |
--------------------------------------------------------------------------------
/test/model/HealthGet200Response.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.HealthGet200Response();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('HealthGet200Response', function() {
51 | it('should create an instance of HealthGet200Response', function() {
52 | // uncomment below and update the code to test HealthGet200Response
53 | //var instance = new Listmonk.HealthGet200Response();
54 | //expect(instance).to.be.a(Listmonk.HealthGet200Response);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.HealthGet200Response();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/ImportStatus.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.ImportStatus();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('ImportStatus', function() {
51 | it('should create an instance of ImportStatus', function() {
52 | // uncomment below and update the code to test ImportStatus
53 | //var instance = new Listmonk.ImportStatus();
54 | //expect(instance).to.be.a(Listmonk.ImportStatus);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.ImportStatus();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/ImportStatusData.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.ImportStatusData();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('ImportStatusData', function() {
51 | it('should create an instance of ImportStatusData', function() {
52 | // uncomment below and update the code to test ImportStatusData
53 | //var instance = new Listmonk.ImportStatusData();
54 | //expect(instance).to.be.a(Listmonk.ImportStatusData);
55 | });
56 |
57 | it('should have the property name (base name: "name")', function() {
58 | // uncomment below and update the code to test the property name
59 | //var instance = new Listmonk.ImportStatusData();
60 | //expect(instance).to.be();
61 | });
62 |
63 | it('should have the property total (base name: "total")', function() {
64 | // uncomment below and update the code to test the property total
65 | //var instance = new Listmonk.ImportStatusData();
66 | //expect(instance).to.be();
67 | });
68 |
69 | it('should have the property imported (base name: "imported")', function() {
70 | // uncomment below and update the code to test the property imported
71 | //var instance = new Listmonk.ImportStatusData();
72 | //expect(instance).to.be();
73 | });
74 |
75 | it('should have the property status (base name: "status")', function() {
76 | // uncomment below and update the code to test the property status
77 | //var instance = new Listmonk.ImportStatusData();
78 | //expect(instance).to.be();
79 | });
80 |
81 | });
82 |
83 | }));
84 |
--------------------------------------------------------------------------------
/test/model/ImportSubscribersLogsGet200Response.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.ImportSubscribersLogsGet200Response();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('ImportSubscribersLogsGet200Response', function() {
51 | it('should create an instance of ImportSubscribersLogsGet200Response', function() {
52 | // uncomment below and update the code to test ImportSubscribersLogsGet200Response
53 | //var instance = new Listmonk.ImportSubscribersLogsGet200Response();
54 | //expect(instance).to.be.a(Listmonk.ImportSubscribersLogsGet200Response);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.ImportSubscribersLogsGet200Response();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/ImportSubscribersPostRequest.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.ImportSubscribersPostRequest();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('ImportSubscribersPostRequest', function() {
51 | it('should create an instance of ImportSubscribersPostRequest', function() {
52 | // uncomment below and update the code to test ImportSubscribersPostRequest
53 | //var instance = new Listmonk.ImportSubscribersPostRequest();
54 | //expect(instance).to.be.a(Listmonk.ImportSubscribersPostRequest);
55 | });
56 |
57 | it('should have the property params (base name: "params")', function() {
58 | // uncomment below and update the code to test the property params
59 | //var instance = new Listmonk.ImportSubscribersPostRequest();
60 | //expect(instance).to.be();
61 | });
62 |
63 | it('should have the property file (base name: "file")', function() {
64 | // uncomment below and update the code to test the property file
65 | //var instance = new Listmonk.ImportSubscribersPostRequest();
66 | //expect(instance).to.be();
67 | });
68 |
69 | });
70 |
71 | }));
72 |
--------------------------------------------------------------------------------
/test/model/LanguagePack.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.LanguagePack();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('LanguagePack', function() {
51 | it('should create an instance of LanguagePack', function() {
52 | // uncomment below and update the code to test LanguagePack
53 | //var instance = new Listmonk.LanguagePack();
54 | //expect(instance).to.be.a(Listmonk.LanguagePack);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.LanguagePack();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/ListRegistrationInfo.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.ListRegistrationInfo();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('ListRegistrationInfo', function() {
51 | it('should create an instance of ListRegistrationInfo', function() {
52 | // uncomment below and update the code to test ListRegistrationInfo
53 | //var instance = new Listmonk.ListRegistrationInfo();
54 | //expect(instance).to.be.a(Listmonk.ListRegistrationInfo);
55 | });
56 |
57 | it('should have the property name (base name: "name")', function() {
58 | // uncomment below and update the code to test the property name
59 | //var instance = new Listmonk.ListRegistrationInfo();
60 | //expect(instance).to.be();
61 | });
62 |
63 | it('should have the property type (base name: "type")', function() {
64 | // uncomment below and update the code to test the property type
65 | //var instance = new Listmonk.ListRegistrationInfo();
66 | //expect(instance).to.be();
67 | });
68 |
69 | it('should have the property optin (base name: "optin")', function() {
70 | // uncomment below and update the code to test the property optin
71 | //var instance = new Listmonk.ListRegistrationInfo();
72 | //expect(instance).to.be();
73 | });
74 |
75 | it('should have the property tags (base name: "tags")', function() {
76 | // uncomment below and update the code to test the property tags
77 | //var instance = new Listmonk.ListRegistrationInfo();
78 | //expect(instance).to.be();
79 | });
80 |
81 | });
82 |
83 | }));
84 |
--------------------------------------------------------------------------------
/test/model/ListsGet200Response.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.ListsGet200Response();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('ListsGet200Response', function() {
51 | it('should create an instance of ListsGet200Response', function() {
52 | // uncomment below and update the code to test ListsGet200Response
53 | //var instance = new Listmonk.ListsGet200Response();
54 | //expect(instance).to.be.a(Listmonk.ListsGet200Response);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.ListsGet200Response();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/ListsListIdPutRequest.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.ListsListIdPutRequest();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('ListsListIdPutRequest', function() {
51 | it('should create an instance of ListsListIdPutRequest', function() {
52 | // uncomment below and update the code to test ListsListIdPutRequest
53 | //var instance = new Listmonk.ListsListIdPutRequest();
54 | //expect(instance).to.be.a(Listmonk.ListsListIdPutRequest);
55 | });
56 |
57 | it('should have the property name (base name: "name")', function() {
58 | // uncomment below and update the code to test the property name
59 | //var instance = new Listmonk.ListsListIdPutRequest();
60 | //expect(instance).to.be();
61 | });
62 |
63 | it('should have the property type (base name: "type")', function() {
64 | // uncomment below and update the code to test the property type
65 | //var instance = new Listmonk.ListsListIdPutRequest();
66 | //expect(instance).to.be();
67 | });
68 |
69 | it('should have the property optin (base name: "optin")', function() {
70 | // uncomment below and update the code to test the property optin
71 | //var instance = new Listmonk.ListsListIdPutRequest();
72 | //expect(instance).to.be();
73 | });
74 |
75 | it('should have the property tags (base name: "tags")', function() {
76 | // uncomment below and update the code to test the property tags
77 | //var instance = new Listmonk.ListsListIdPutRequest();
78 | //expect(instance).to.be();
79 | });
80 |
81 | });
82 |
83 | }));
84 |
--------------------------------------------------------------------------------
/test/model/LogsGet200Response.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.LogsGet200Response();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('LogsGet200Response', function() {
51 | it('should create an instance of LogsGet200Response', function() {
52 | // uncomment below and update the code to test LogsGet200Response
53 | //var instance = new Listmonk.LogsGet200Response();
54 | //expect(instance).to.be.a(Listmonk.LogsGet200Response);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.LogsGet200Response();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/MaintenanceSubscribersTypeDelete200Response.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.MaintenanceSubscribersTypeDelete200Response();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('MaintenanceSubscribersTypeDelete200Response', function() {
51 | it('should create an instance of MaintenanceSubscribersTypeDelete200Response', function() {
52 | // uncomment below and update the code to test MaintenanceSubscribersTypeDelete200Response
53 | //var instance = new Listmonk.MaintenanceSubscribersTypeDelete200Response();
54 | //expect(instance).to.be.a(Listmonk.MaintenanceSubscribersTypeDelete200Response);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.MaintenanceSubscribersTypeDelete200Response();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/MaintenanceSubscribersTypeDelete200ResponseData.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.MaintenanceSubscribersTypeDelete200ResponseData();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('MaintenanceSubscribersTypeDelete200ResponseData', function() {
51 | it('should create an instance of MaintenanceSubscribersTypeDelete200ResponseData', function() {
52 | // uncomment below and update the code to test MaintenanceSubscribersTypeDelete200ResponseData
53 | //var instance = new Listmonk.MaintenanceSubscribersTypeDelete200ResponseData();
54 | //expect(instance).to.be.a(Listmonk.MaintenanceSubscribersTypeDelete200ResponseData);
55 | });
56 |
57 | it('should have the property count (base name: "count")', function() {
58 | // uncomment below and update the code to test the property count
59 | //var instance = new Listmonk.MaintenanceSubscribersTypeDelete200ResponseData();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/MediaGet200Response.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.MediaGet200Response();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('MediaGet200Response', function() {
51 | it('should create an instance of MediaGet200Response', function() {
52 | // uncomment below and update the code to test MediaGet200Response
53 | //var instance = new Listmonk.MediaGet200Response();
54 | //expect(instance).to.be.a(Listmonk.MediaGet200Response);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.MediaGet200Response();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/NewCampaign.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.NewCampaign();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('NewCampaign', function() {
51 | it('should create an instance of NewCampaign', function() {
52 | // uncomment below and update the code to test NewCampaign
53 | //var instance = new Listmonk.NewCampaign();
54 | //expect(instance).to.be.a(Listmonk.NewCampaign);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.NewCampaign();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/PublicListsGet200ResponseInner.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.PublicListsGet200ResponseInner();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('PublicListsGet200ResponseInner', function() {
51 | it('should create an instance of PublicListsGet200ResponseInner', function() {
52 | // uncomment below and update the code to test PublicListsGet200ResponseInner
53 | //var instance = new Listmonk.PublicListsGet200ResponseInner();
54 | //expect(instance).to.be.a(Listmonk.PublicListsGet200ResponseInner);
55 | });
56 |
57 | it('should have the property uuid (base name: "uuid")', function() {
58 | // uncomment below and update the code to test the property uuid
59 | //var instance = new Listmonk.PublicListsGet200ResponseInner();
60 | //expect(instance).to.be();
61 | });
62 |
63 | it('should have the property name (base name: "name")', function() {
64 | // uncomment below and update the code to test the property name
65 | //var instance = new Listmonk.PublicListsGet200ResponseInner();
66 | //expect(instance).to.be();
67 | });
68 |
69 | });
70 |
71 | }));
72 |
--------------------------------------------------------------------------------
/test/model/PublicSubscriptionPost200Response.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.PublicSubscriptionPost200Response();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('PublicSubscriptionPost200Response', function() {
51 | it('should create an instance of PublicSubscriptionPost200Response', function() {
52 | // uncomment below and update the code to test PublicSubscriptionPost200Response
53 | //var instance = new Listmonk.PublicSubscriptionPost200Response();
54 | //expect(instance).to.be.a(Listmonk.PublicSubscriptionPost200Response);
55 | });
56 |
57 | it('should have the property name (base name: "name")', function() {
58 | // uncomment below and update the code to test the property name
59 | //var instance = new Listmonk.PublicSubscriptionPost200Response();
60 | //expect(instance).to.be();
61 | });
62 |
63 | it('should have the property email (base name: "email")', function() {
64 | // uncomment below and update the code to test the property email
65 | //var instance = new Listmonk.PublicSubscriptionPost200Response();
66 | //expect(instance).to.be();
67 | });
68 |
69 | it('should have the property listUuids (base name: "list_uuids")', function() {
70 | // uncomment below and update the code to test the property listUuids
71 | //var instance = new Listmonk.PublicSubscriptionPost200Response();
72 | //expect(instance).to.be();
73 | });
74 |
75 | });
76 |
77 | }));
78 |
--------------------------------------------------------------------------------
/test/model/ServerConfig.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.ServerConfig();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('ServerConfig', function() {
51 | it('should create an instance of ServerConfig', function() {
52 | // uncomment below and update the code to test ServerConfig
53 | //var instance = new Listmonk.ServerConfig();
54 | //expect(instance).to.be.a(Listmonk.ServerConfig);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.ServerConfig();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/ServerConfigDataLangsInner.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.ServerConfigDataLangsInner();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('ServerConfigDataLangsInner', function() {
51 | it('should create an instance of ServerConfigDataLangsInner', function() {
52 | // uncomment below and update the code to test ServerConfigDataLangsInner
53 | //var instance = new Listmonk.ServerConfigDataLangsInner();
54 | //expect(instance).to.be.a(Listmonk.ServerConfigDataLangsInner);
55 | });
56 |
57 | it('should have the property code (base name: "code")', function() {
58 | // uncomment below and update the code to test the property code
59 | //var instance = new Listmonk.ServerConfigDataLangsInner();
60 | //expect(instance).to.be();
61 | });
62 |
63 | it('should have the property name (base name: "name")', function() {
64 | // uncomment below and update the code to test the property name
65 | //var instance = new Listmonk.ServerConfigDataLangsInner();
66 | //expect(instance).to.be();
67 | });
68 |
69 | });
70 |
71 | }));
72 |
--------------------------------------------------------------------------------
/test/model/Settings.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.Settings();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('Settings', function() {
51 | it('should create an instance of Settings', function() {
52 | // uncomment below and update the code to test Settings
53 | //var instance = new Listmonk.Settings();
54 | //expect(instance).to.be.a(Listmonk.Settings);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.Settings();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/SubscriberProfileAttribs.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.SubscriberProfileAttribs();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('SubscriberProfileAttribs', function() {
51 | it('should create an instance of SubscriberProfileAttribs', function() {
52 | // uncomment below and update the code to test SubscriberProfileAttribs
53 | //var instance = new Listmonk.SubscriberProfileAttribs();
54 | //expect(instance).to.be.a(Listmonk.SubscriberProfileAttribs);
55 | });
56 |
57 | it('should have the property city (base name: "city")', function() {
58 | // uncomment below and update the code to test the property city
59 | //var instance = new Listmonk.SubscriberProfileAttribs();
60 | //expect(instance).to.be();
61 | });
62 |
63 | it('should have the property good (base name: "good")', function() {
64 | // uncomment below and update the code to test the property good
65 | //var instance = new Listmonk.SubscriberProfileAttribs();
66 | //expect(instance).to.be();
67 | });
68 |
69 | it('should have the property type (base name: "type")', function() {
70 | // uncomment below and update the code to test the property type
71 | //var instance = new Listmonk.SubscriberProfileAttribs();
72 | //expect(instance).to.be();
73 | });
74 |
75 | });
76 |
77 | }));
78 |
--------------------------------------------------------------------------------
/test/model/SubscriberRegistrationInfoAttribs.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.SubscriberRegistrationInfoAttribs();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('SubscriberRegistrationInfoAttribs', function() {
51 | it('should create an instance of SubscriberRegistrationInfoAttribs', function() {
52 | // uncomment below and update the code to test SubscriberRegistrationInfoAttribs
53 | //var instance = new Listmonk.SubscriberRegistrationInfoAttribs();
54 | //expect(instance).to.be.a(Listmonk.SubscriberRegistrationInfoAttribs);
55 | });
56 |
57 | it('should have the property city (base name: "city")', function() {
58 | // uncomment below and update the code to test the property city
59 | //var instance = new Listmonk.SubscriberRegistrationInfoAttribs();
60 | //expect(instance).to.be();
61 | });
62 |
63 | it('should have the property projects (base name: "projects")', function() {
64 | // uncomment below and update the code to test the property projects
65 | //var instance = new Listmonk.SubscriberRegistrationInfoAttribs();
66 | //expect(instance).to.be();
67 | });
68 |
69 | it('should have the property stack (base name: "stack")', function() {
70 | // uncomment below and update the code to test the property stack
71 | //var instance = new Listmonk.SubscriberRegistrationInfoAttribs();
72 | //expect(instance).to.be();
73 | });
74 |
75 | });
76 |
77 | }));
78 |
--------------------------------------------------------------------------------
/test/model/SubscriberRegistrationInfoAttribsStack.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.SubscriberRegistrationInfoAttribsStack();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('SubscriberRegistrationInfoAttribsStack', function() {
51 | it('should create an instance of SubscriberRegistrationInfoAttribsStack', function() {
52 | // uncomment below and update the code to test SubscriberRegistrationInfoAttribsStack
53 | //var instance = new Listmonk.SubscriberRegistrationInfoAttribsStack();
54 | //expect(instance).to.be.a(Listmonk.SubscriberRegistrationInfoAttribsStack);
55 | });
56 |
57 | it('should have the property languages (base name: "languages")', function() {
58 | // uncomment below and update the code to test the property languages
59 | //var instance = new Listmonk.SubscriberRegistrationInfoAttribsStack();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/SubscribersGet200Response.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.SubscribersGet200Response();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('SubscribersGet200Response', function() {
51 | it('should create an instance of SubscribersGet200Response', function() {
52 | // uncomment below and update the code to test SubscribersGet200Response
53 | //var instance = new Listmonk.SubscribersGet200Response();
54 | //expect(instance).to.be.a(Listmonk.SubscribersGet200Response);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.SubscribersGet200Response();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/SubscribersIdBouncesGet200Response.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.SubscribersIdBouncesGet200Response();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('SubscribersIdBouncesGet200Response', function() {
51 | it('should create an instance of SubscribersIdBouncesGet200Response', function() {
52 | // uncomment below and update the code to test SubscribersIdBouncesGet200Response
53 | //var instance = new Listmonk.SubscribersIdBouncesGet200Response();
54 | //expect(instance).to.be.a(Listmonk.SubscribersIdBouncesGet200Response);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.SubscribersIdBouncesGet200Response();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------
/test/model/Subscriptions.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.Subscriptions();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('Subscriptions', function() {
51 | it('should create an instance of Subscriptions', function() {
52 | // uncomment below and update the code to test Subscriptions
53 | //var instance = new Listmonk.Subscriptions();
54 | //expect(instance).to.be.a(Listmonk.Subscriptions);
55 | });
56 |
57 | it('should have the property subscriptionStatus (base name: "subscription_status")', function() {
58 | // uncomment below and update the code to test the property subscriptionStatus
59 | //var instance = new Listmonk.Subscriptions();
60 | //expect(instance).to.be();
61 | });
62 |
63 | it('should have the property name (base name: "name")', function() {
64 | // uncomment below and update the code to test the property name
65 | //var instance = new Listmonk.Subscriptions();
66 | //expect(instance).to.be();
67 | });
68 |
69 | it('should have the property type (base name: "type")', function() {
70 | // uncomment below and update the code to test the property type
71 | //var instance = new Listmonk.Subscriptions();
72 | //expect(instance).to.be();
73 | });
74 |
75 | it('should have the property createdAt (base name: "created_at")', function() {
76 | // uncomment below and update the code to test the property createdAt
77 | //var instance = new Listmonk.Subscriptions();
78 | //expect(instance).to.be();
79 | });
80 |
81 | });
82 |
83 | }));
84 |
--------------------------------------------------------------------------------
/test/model/TemplatesGet200Response.spec.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Listmonk
3 | * The API collection for listmonk
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | *
12 | */
13 |
14 | (function(root, factory) {
15 | if (typeof define === 'function' && define.amd) {
16 | // AMD.
17 | define(['expect.js', process.cwd()+'/src/index'], factory);
18 | } else if (typeof module === 'object' && module.exports) {
19 | // CommonJS-like environments that support module.exports, like Node.
20 | factory(require('expect.js'), require(process.cwd()+'/src/index'));
21 | } else {
22 | // Browser globals (root is window)
23 | factory(root.expect, root.Listmonk);
24 | }
25 | }(this, function(expect, Listmonk) {
26 | 'use strict';
27 |
28 | var instance;
29 |
30 | beforeEach(function() {
31 | instance = new Listmonk.TemplatesGet200Response();
32 | });
33 |
34 | var getProperty = function(object, getter, property) {
35 | // Use getter method if present; otherwise, get the property directly.
36 | if (typeof object[getter] === 'function')
37 | return object[getter]();
38 | else
39 | return object[property];
40 | }
41 |
42 | var setProperty = function(object, setter, property, value) {
43 | // Use setter method if present; otherwise, set the property directly.
44 | if (typeof object[setter] === 'function')
45 | object[setter](value);
46 | else
47 | object[property] = value;
48 | }
49 |
50 | describe('TemplatesGet200Response', function() {
51 | it('should create an instance of TemplatesGet200Response', function() {
52 | // uncomment below and update the code to test TemplatesGet200Response
53 | //var instance = new Listmonk.TemplatesGet200Response();
54 | //expect(instance).to.be.a(Listmonk.TemplatesGet200Response);
55 | });
56 |
57 | it('should have the property data (base name: "data")', function() {
58 | // uncomment below and update the code to test the property data
59 | //var instance = new Listmonk.TemplatesGet200Response();
60 | //expect(instance).to.be();
61 | });
62 |
63 | });
64 |
65 | }));
66 |
--------------------------------------------------------------------------------