Skip to content

Commit d094ea3

Browse files
committed
generate email octopus client
1 parent f2f4886 commit d094ea3

File tree

11 files changed

+2546
-17
lines changed

11 files changed

+2546
-17
lines changed

sdks/email_octopus/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.beam
2+
*.ez
3+
/build
4+
erl_crash.dump

sdks/email_octopus/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# email_octopus
2+
3+
[![Package Version](https://img.shields.io/hexpm/v/email_octopus)](https://hex.pm/packages/email_octopus)
4+
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/email_octopus/)
5+
6+
```sh
7+
gleam add email_octopus@1
8+
```
9+
```gleam
10+
import email_octopus
11+
12+
pub fn main() -> Nil {
13+
// TODO: An example of the project in use
14+
}
15+
```
16+
17+
Further documentation can be found at <https://hexdocs.pm/email_octopus>.
18+
19+
## Development
20+
21+
```sh
22+
gleam run # Run the project
23+
gleam test # Run the tests
24+
```

sdks/email_octopus/gleam.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name = "email_octopus"
2+
version = "1.0.0"
3+
target = "javascript"
4+
5+
# Fill out these fields if you intend to generate HTML documentation or publish
6+
# your project to the Hex package manager.
7+
#
8+
# description = ""
9+
# licences = ["Apache-2.0"]
10+
# repository = { type = "github", user = "", repo = "" }
11+
# links = [{ title = "Website", href = "" }]
12+
#
13+
# For a full reference of all the available options, you can have a look at
14+
# https://gleam.run/writing-gleam/gleam-toml/.
15+
16+
[dependencies]
17+
gleam_stdlib = ">= 0.44.0 and < 2.0.0"
18+
snag = ">= 1.1.0 and < 2.0.0"
19+
gleam_javascript = ">= 1.0.0 and < 2.0.0"
20+
gleam_http = ">= 4.0.0 and < 5.0.0"
21+
gleam_json = ">= 3.0.1 and < 4.0.0"
22+
midas = ">= 1.6.0 and < 2.0.0"
23+
24+
[dev-dependencies]
25+
gleeunit = ">= 1.0.0 and < 2.0.0"
26+
oas_generator = ">= 1.6.2 and < 2.0.0"

sdks/email_octopus/manifest.toml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This file was generated by Gleam
2+
# You typically do not need to edit this file
3+
4+
packages = [
5+
{ name = "filepath", version = "1.1.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "filepath", source = "hex", outer_checksum = "B06A9AF0BF10E51401D64B98E4B627F1D2E48C154967DA7AF4D0914780A6D40A" },
6+
{ name = "glam", version = "2.0.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "glam", source = "hex", outer_checksum = "4932A2D139AB0389E149396407F89654928D7B815E212BB02F13C66F53B1BBA1" },
7+
{ name = "glance", version = "3.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib", "glexer"], otp_app = "glance", source = "hex", outer_checksum = "F3458292AFB4136CEE23142A8727C1270494E7A96978B9B9F9D2C1618583EF3D" },
8+
{ name = "glance_printer", version = "3.0.0", build_tools = ["gleam"], requirements = ["glam", "glance", "gleam_stdlib"], otp_app = "glance_printer", source = "hex", outer_checksum = "8386C156B413B90828884577F89AADD4C131AA1C3DAFC826607BAEE40E636ACE" },
9+
{ name = "gleam_http", version = "4.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_http", source = "hex", outer_checksum = "0A62451FC85B98062E0907659D92E6A89F5F3C0FBE4AB8046C99936BF6F91DBC" },
10+
{ name = "gleam_javascript", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_javascript", source = "hex", outer_checksum = "EF6C77A506F026C6FB37941889477CD5E4234FCD4337FF0E9384E297CB8F97EB" },
11+
{ name = "gleam_json", version = "3.0.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_json", source = "hex", outer_checksum = "5BA154440B22D9800955B1AB854282FA37B97F30F409D76B0824D0A60C934188" },
12+
{ name = "gleam_stdlib", version = "0.60.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "621D600BB134BC239CB2537630899817B1A42E60A1D46C5E9F3FAE39F88C800B" },
13+
{ name = "gleeunit", version = "1.5.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "D33B7736CF0766ED3065F64A1EBB351E72B2E8DE39BAFC8ADA0E35E92A6A934F" },
14+
{ name = "glexer", version = "2.2.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "glexer", source = "hex", outer_checksum = "5C235CBDF4DA5203AD5EAB1D6D8B456ED8162C5424FE2309CFFB7EF438B7C269" },
15+
{ name = "justin", version = "1.0.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "justin", source = "hex", outer_checksum = "7FA0C6DB78640C6DC5FBFD59BF3456009F3F8B485BF6825E97E1EB44E9A1E2CD" },
16+
{ name = "midas", version = "1.6.0", build_tools = ["gleam"], requirements = ["filepath", "gleam_http", "gleam_json", "gleam_stdlib", "snag"], otp_app = "midas", source = "hex", outer_checksum = "3AE76A773CE6BCD8D518CBDEB011FF2309D222E65451170E4AE6ADD3D35BD74F" },
17+
{ name = "non_empty_list", version = "2.1.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "non_empty_list", source = "hex", outer_checksum = "3BF1496B475F3F2CE2EA18157587329812493369B2A7C5B9DCFEA5C007670A3B" },
18+
{ name = "oas", version = "5.1.0", build_tools = ["gleam"], requirements = ["gleam_http", "gleam_stdlib", "non_empty_list"], otp_app = "oas", source = "hex", outer_checksum = "B918B56231B1A473B6598C7A927CDC9F560EE05EBBA9D46FE0FAD39C4B5ECBAC" },
19+
{ name = "oas_generator", version = "1.6.2", build_tools = ["gleam"], requirements = ["glance", "glance_printer", "gleam_http", "gleam_json", "gleam_stdlib", "justin", "non_empty_list", "oas", "simplifile", "snag"], otp_app = "oas_generator", source = "hex", outer_checksum = "9BA1DE7EA99FD145CDF0F75F13DC19E015ADA51B836B72947F1F72E426956FAC" },
20+
{ name = "simplifile", version = "2.3.0", build_tools = ["gleam"], requirements = ["filepath", "gleam_stdlib"], otp_app = "simplifile", source = "hex", outer_checksum = "0A868DAC6063D9E983477981839810DC2E553285AB4588B87E3E9C96A7FB4CB4" },
21+
{ name = "snag", version = "1.1.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "snag", source = "hex", outer_checksum = "7E9F06390040EB5FAB392CE642771484136F2EC103A92AE11BA898C8167E6E17" },
22+
]
23+
24+
[requirements]
25+
gleam_http = { version = ">= 4.0.0 and < 5.0.0" }
26+
gleam_javascript = { version = ">= 1.0.0 and < 2.0.0" }
27+
gleam_json = { version = ">= 3.0.1 and < 4.0.0" }
28+
gleam_stdlib = { version = ">= 0.44.0 and < 2.0.0" }
29+
gleeunit = { version = ">= 1.0.0 and < 2.0.0" }
30+
midas = { version = ">= 1.6.0 and < 2.0.0" }
31+
oas_generator = { version = ">= 1.6.2 and < 2.0.0" }
32+
snag = { version = ">= 1.1.0 and < 2.0.0" }

sdks/email_octopus/priv/email_octopus.openapi.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3794,7 +3794,7 @@
37943794
"fallback": {
37953795
"type": [
37963796
"string",
3797-
null
3797+
"null"
37983798
],
37993799
"description": "A default value for the field, used in campaigns when there is no other value available.",
38003800
"example": "Unknown"
@@ -4078,7 +4078,7 @@
40784078
"fallback": {
40794079
"type": [
40804080
"string",
4081-
null
4081+
"null"
40824082
],
40834083
"description": "A default value for the field, used in campaigns when there is no other value available.",
40844084
"example": "Unknown"
@@ -4170,7 +4170,7 @@
41704170
"fallback": {
41714171
"type": [
41724172
"string",
4173-
null
4173+
"null"
41744174
],
41754175
"description": "A default value for the field, used in campaigns when there is no other value available.",
41764176
"example": "Unknown"
@@ -4459,7 +4459,7 @@
44594459
"fallback": {
44604460
"type": [
44614461
"string",
4462-
null
4462+
"null"
44634463
],
44644464
"description": "A default value for the field, used in campaigns when there is no other value available.",
44654465
"example": "Unknown"
@@ -7240,12 +7240,12 @@
72407240
"example": "https://example.com/promo-1"
72417241
},
72427242
"clicked_total": {
7243-
"type": "int",
7243+
"type": "integer",
72447244
"description": "The number of total clicks.",
72457245
"example": 10
72467246
},
72477247
"clicked_unique": {
7248-
"type": "int",
7248+
"type": "integer",
72497249
"description": "The number of unique clicks.",
72507250
"example": 7
72517251
}
@@ -7265,7 +7265,7 @@
72657265
"example": "00000000-0000-0000-0000-000000000000"
72667266
},
72677267
"sent": {
7268-
"type": "int",
7268+
"type": "integer",
72697269
"description": "The number of contacts that were sent to.",
72707270
"example": 200
72717271
},
@@ -7274,12 +7274,12 @@
72747274
"description": "Statistics related to bounces.",
72757275
"properties": {
72767276
"hard": {
7277-
"type": "int",
7277+
"type": "integer",
72787278
"description": "The number of contacts who hard bounced.",
72797279
"example": 10
72807280
},
72817281
"soft": {
7282-
"type": "int",
7282+
"type": "integer",
72837283
"description": "The number of contacts who soft bounced.",
72847284
"example": 5
72857285
}
@@ -7290,12 +7290,12 @@
72907290
"description": "Statistics related to opens.",
72917291
"properties": {
72927292
"total": {
7293-
"type": "int",
7293+
"type": "integer",
72947294
"description": "The number of all opens.",
72957295
"example": 110
72967296
},
72977297
"unique": {
7298-
"type": "int",
7298+
"type": "integer",
72997299
"description": "The number of unique opens.",
73007300
"example": 85
73017301
}
@@ -7306,24 +7306,24 @@
73067306
"description": "Statistics related to clicks.",
73077307
"properties": {
73087308
"total": {
7309-
"type": "int",
7309+
"type": "integer",
73107310
"description": "The number of all opens.",
73117311
"example": 110
73127312
},
73137313
"unique": {
7314-
"type": "int",
7314+
"type": "integer",
73157315
"description": "The number of unique opens.",
73167316
"example": 85
73177317
}
73187318
}
73197319
},
73207320
"complained": {
7321-
"type": "int",
7321+
"type": "integer",
73227322
"description": "The number of contacts who complained.",
73237323
"example": 50
73247324
},
73257325
"unsubscribed": {
7326-
"type": "int",
7326+
"type": "integer",
73277327
"description": "The number of contacts who unsubscribed.",
73287328
"example": 25
73297329
}
@@ -7383,7 +7383,7 @@
73837383
"fallback": {
73847384
"type": [
73857385
"string",
7386-
null
7386+
"null"
73877387
],
73887388
"description": "A default value for the field, used in campaigns when there is no other value available.",
73897389
"example": "Unknown"
@@ -7733,7 +7733,7 @@
77337733
"fallback": {
77347734
"type": [
77357735
"string",
7736-
null
7736+
"null"
77377737
],
77387738
"description": "A default value for the field, used in campaigns when there is no other value available.",
77397739
"example": "Unknown"

0 commit comments

Comments
 (0)