Namirasoft Notification Sender API V1

Namira Software Corporation Notification Sender API Version 1 (1.4.0)

Install


To use this cli, we need to first Install Nodejs, then run the following command.

npm i -g namirasoft-notification-sender-api-v1

Copied!

Commands


Healthz

Get

Returns the application health status

ns-notification-sender healthz get

Copied!

Value

List

Returns the value list of a given table and column

ns-notification-sender value list {table} {column}

Copied!

TopicCategory

List

Returns the topic category list

ns-notification-sender topiccategory list {filters} {page} {size}

Copied!

Get

Returns a topic category by id.

ns-notification-sender topiccategory get {id}

Copied!

Create

Creates a new topic category

ns-notification-sender topiccategory create

Copied!

--entity_id (String)

--category_id (String)

Delete

Deletes a topic category by an id.

ns-notification-sender topiccategory delete {id}

Copied!

TopicField

List

Returns the topic field list

ns-notification-sender topicfield list {filters} {page} {size}

Copied!

Get

Returns a topic field by id.

ns-notification-sender topicfield get {id}

Copied!

Create

Creates a new topic field

ns-notification-sender topicfield create

Copied!

--entity_id (String)

--field_id (String)

--value (String)

--description (String)

Update

Updates a topic field by an id

ns-notification-sender topicfield update {id}

Copied!

--entity_id (String)

--field_id (String)

--value (String)

--description (String)

Delete

Deletes a topic field by an id.

ns-notification-sender topicfield delete {id}

Copied!

TopicTag

List

Returns the topic tag list

ns-notification-sender topictag list {filters} {page} {size}

Copied!

Get

Returns a topic tag by id.

ns-notification-sender topictag get {id}

Copied!

Create

Creates a new topic tag

ns-notification-sender topictag create

Copied!

--entity_id (String)

--name (String)

--value (String)

--description (String)

Update

Updates a topic tag by an id

ns-notification-sender topictag update {id}

Copied!

--entity_id (String)

--name (String)

--value (String)

--description (String)

Delete

Deletes a topic tag by an id.

ns-notification-sender topictag delete {id}

Copied!

Topic

Send

Sends an topic

ns-notification-sender topic send

Copied!

--topic_id (String)

--title (String)

--message (String)

List

Returns the topic list

ns-notification-sender topic list {filters} {page} {size}

Copied!

Get

Returns a topic by an id

ns-notification-sender topic get {id}

Copied!

Create

Creates a new topic

ns-notification-sender topic create

Copied!

--workspace_id (String)

--name (String)

--description (String)

Update

Updates a topic by an id

ns-notification-sender topic update {id}

Copied!

--workspace_id (String)

--name (String)

--description (String)

Delete

Deletes a topic by an id

ns-notification-sender topic delete {id}

Copied!

SubscriberCategory

List

Returns the subscriber category list

ns-notification-sender subscribercategory list {filters} {page} {size}

Copied!

Get

Returns a subscriber category by id.

ns-notification-sender subscribercategory get {id}

Copied!

Create

Creates a new subscriber category

ns-notification-sender subscribercategory create

Copied!

--entity_id (String)

--category_id (String)

Delete

Deletes a subscriber category by an id.

ns-notification-sender subscribercategory delete {id}

Copied!

SubscriberField

List

Returns the subscriber field list

ns-notification-sender subscriberfield list {filters} {page} {size}

Copied!

Get

Returns a subscriber field by id.

ns-notification-sender subscriberfield get {id}

Copied!

Create

Creates a new subscriber field

ns-notification-sender subscriberfield create

Copied!

--entity_id (String)

--field_id (String)

--value (String)

--description (String)

Update

Updates a subscriber field by an id

ns-notification-sender subscriberfield update {id}

Copied!

--entity_id (String)

--field_id (String)

--value (String)

--description (String)

Delete

Deletes a subscriber field by an id.

ns-notification-sender subscriberfield delete {id}

Copied!

SubscriberTag

List

Returns the subscriber tag list

ns-notification-sender subscribertag list {filters} {page} {size}

Copied!

Get

Returns a subscriber tag by id.

ns-notification-sender subscribertag get {id}

Copied!

Create

Creates a new subscriber tag

ns-notification-sender subscribertag create

Copied!

--entity_id (String)

--name (String)

--value (String)

--description (String)

Update

Updates a subscriber tag by an id

ns-notification-sender subscribertag update {id}

Copied!

--entity_id (String)

--name (String)

--value (String)

--description (String)

Delete

Deletes a subscriber tag by an id.

ns-notification-sender subscribertag delete {id}

Copied!

Subscriber

List

Returns the subscriber list

ns-notification-sender subscriber list {filters} {page} {size}

Copied!

Get

Returns a subscriber by an id

ns-notification-sender subscriber get {id}

Copied!

Create

Creates a new subscriber

ns-notification-sender subscriber create

Copied!

--topic_id (String)

--sender_id (String)

--sender_type (Enum)

--name (String)

--value (String)

--description (String)

Update

Updates a subscriber by an id

ns-notification-sender subscriber update {id}

Copied!

--topic_id (String)

--sender_id (String)

--sender_type (Enum)

--name (String)

--value (String)

--description (String)

Delete

Deletes a subscriber by an id

ns-notification-sender subscriber delete {id}

Copied!

SentSubscriber

List

Returns the sent subscriber list

ns-notification-sender sentsubscriber list {filters} {page} {size}

Copied!

Get

Returns a sent subscriber by an id

ns-notification-sender sentsubscriber get {id}

Copied!

SentTopic

List

Returns the sent topic list

ns-notification-sender senttopic list {filters} {page} {size}

Copied!

Get

Returns a sent topic by an id

ns-notification-sender senttopic get {id}

Copied!

Schemas


TopicCategory

{
  "name": "TopicCategory",
  "type": "Object",
  "required": true,
  "fields": {
    "id": {
      "type": "Integer",
      "required": true
    },
    "user_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "entity_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "category_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "createdAt": {
      "type": "DateTime",
      "required": true
    },
    "updatedAt": {
      "type": "DateTime",
      "required": true
    }
  }
}

EntityCategoryInput

{
  "name": "EntityCategoryInput",
  "type": "Object",
  "required": true,
  "fields": {
    "entity_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "category_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    }
  }
}

TopicField

{
  "name": "TopicField",
  "type": "Object",
  "required": true,
  "fields": {
    "id": {
      "type": "Integer",
      "required": true
    },
    "user_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "entity_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "field_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "value": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "description": {
      "type": "String",
      "required": false,
      "allowEmpty": true
    },
    "createdAt": {
      "type": "DateTime",
      "required": true
    },
    "updatedAt": {
      "type": "DateTime",
      "required": true
    }
  }
}

EntityFieldInput

{
  "name": "EntityFieldInput",
  "type": "Object",
  "required": true,
  "fields": {
    "entity_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "field_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "value": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "description": {
      "type": "String",
      "required": false,
      "allowEmpty": true
    }
  }
}

TopicTag

{
  "name": "TopicTag",
  "type": "Object",
  "required": true,
  "fields": {
    "id": {
      "type": "Integer",
      "required": true
    },
    "user_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "entity_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "name": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "value": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "description": {
      "type": "String",
      "required": false,
      "allowEmpty": true
    },
    "createdAt": {
      "type": "DateTime",
      "required": true
    },
    "updatedAt": {
      "type": "DateTime",
      "required": true
    }
  }
}

EntityTagInput

{
  "name": "EntityTagInput",
  "type": "Object",
  "required": true,
  "fields": {
    "entity_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "name": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "value": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "description": {
      "type": "String",
      "required": false,
      "allowEmpty": true
    }
  }
}

Topic

{
  "name": "Topic",
  "type": "Object",
  "required": true,
  "fields": {
    "id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "user_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "workspace_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "name": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "description": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "createdAt": {
      "type": "DateTime",
      "required": true
    },
    "updatedAt": {
      "type": "DateTime",
      "required": true
    }
  }
}

TopicInput

{
  "name": "TopicInput",
  "type": "Object",
  "required": true,
  "fields": {
    "workspace_id": {
      "type": "String",
      "required": false,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "name": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "description": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    }
  }
}

SubscriberCategory

{
  "name": "SubscriberCategory",
  "type": "Object",
  "required": true,
  "fields": {
    "id": {
      "type": "Integer",
      "required": true
    },
    "user_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "entity_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "category_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "createdAt": {
      "type": "DateTime",
      "required": true
    },
    "updatedAt": {
      "type": "DateTime",
      "required": true
    }
  }
}

SubscriberField

{
  "name": "SubscriberField",
  "type": "Object",
  "required": true,
  "fields": {
    "id": {
      "type": "Integer",
      "required": true
    },
    "user_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "entity_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "field_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "value": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "description": {
      "type": "String",
      "required": false,
      "allowEmpty": true
    },
    "createdAt": {
      "type": "DateTime",
      "required": true
    },
    "updatedAt": {
      "type": "DateTime",
      "required": true
    }
  }
}

SubscriberTag

{
  "name": "SubscriberTag",
  "type": "Object",
  "required": true,
  "fields": {
    "id": {
      "type": "Integer",
      "required": true
    },
    "user_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "entity_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "name": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "value": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "description": {
      "type": "String",
      "required": false,
      "allowEmpty": true
    },
    "createdAt": {
      "type": "DateTime",
      "required": true
    },
    "updatedAt": {
      "type": "DateTime",
      "required": true
    }
  }
}

Subscriber

{
  "name": "Subscriber",
  "type": "Object",
  "required": true,
  "fields": {
    "id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "user_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "topic_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "sender_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "sender_type": {
      "name": "SubscriberSenderType",
      "type": "Enum",
      "required": true,
      "valids": [
        "Email",
        "SMS"
      ]
    },
    "name": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "value": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "description": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "status": {
      "name": "SubscriberStatus",
      "type": "Enum",
      "required": true,
      "valids": [
        "Pending",
        "Accepted",
        "Rejected"
      ]
    },
    "createdAt": {
      "type": "DateTime",
      "required": true
    },
    "updatedAt": {
      "type": "DateTime",
      "required": true
    }
  }
}

SubscriberInput

{
  "name": "SubscriberInput",
  "type": "Object",
  "required": true,
  "fields": {
    "topic_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "sender_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20,
      "allowEmpty": false
    },
    "sender_type": {
      "name": "SubscriberSenderType",
      "type": "Enum",
      "required": true,
      "valids": [
        "Email",
        "SMS"
      ]
    },
    "name": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "value": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "description": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    }
  }
}

SentSubscriber

{
  "name": "SentSubscriber",
  "type": "Object",
  "required": true,
  "fields": {
    "id": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "user_id": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "device_id": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "session_id": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "topic_id": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "subscriber_id": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "subscriber_type": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "subscriber_value": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "message_id": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "title": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "message": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "created_at": {
      "type": "DateTime",
      "required": true
    },
    "sent_at": {
      "type": "DateTime",
      "required": true
    },
    "successful": {
      "type": "Boolean",
      "required": true
    },
    "result": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    }
  }
}

SentTopic

{
  "name": "SentTopic",
  "type": "Object",
  "required": true,
  "fields": {
    "id": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "user_id": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "device_id": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "session_id": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "topic_id": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "title": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "message": {
      "type": "String",
      "required": true,
      "allowEmpty": false
    },
    "created_at": {
      "type": "DateTime",
      "required": true
    },
    "subscibers": {
      "type": "Double",
      "required": true
    },
    "ignored": {
      "type": "Double",
      "required": true
    },
    "error": {
      "type": "Double",
      "required": true
    },
    "successful": {
      "type": "Double",
      "required": true
    },
    "finished_at": {
      "type": "DateTime",
      "required": true
    }
  }
}

Enums

SubscriberSenderType

Email

SMS

SubscriberStatus

Pending

Accepted

Rejected

Namira Software Corporation

©Copyright 2010 to 2024 Namira Software Corporation. All rights reserved.